$sql = \"select body, stamp from posts where user_id = \'$userid\' order by stamp desc\";
NOTE: the above query works fine. What I want to do is also s
select body, stamp, username from posts,users where users.user_id = post.user_id and users.user_id = '$userid' order by stamp desc;