I have the following mysql query---
$query="SELECT * FROM `wall_posts`
WHERE
`login_name` = '" . $_SESSION['SESS_LOGIN'] . "'
OR
`login_name` IN (
SELECT friend_login
FROM friends
)
ORDER BY time DESC";
But when I execute it, it does'nt give me expected results also only one post is being displayed!