Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- SELECT
- posts.ID as ID,
- CONCAT(users.FirstName, ' ', users.LastName) as Name,
- posts.Date as Date,
- posts.Text as Text
- FROM users, posts, friends
- WHERE users.ID = posts.UserID AND
- ((posts.UserID = friends.ID1 AND friends.ID2 = '10000007') OR
- (posts.UserID = friends.ID2 AND friends.ID1 = '10000007')
- OR (posts.UserID = '10000007'))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement