Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- select * from post where userid=?
- OR userid in
- (select sender from users_friends where reciever=?
- and friendship_status=?)
- OR userid in(select reciever
- from users_friends where sender=? and friendship_status=?)
Add Comment
Please, Sign In to add comment