$query = mysql_query("SELECT M.msg_id, M.uid_fk, M.message, M.created, U.full_name, U.profile_pic, U.username, U.uid FROM t_haps_wall M, t_users U, t_join_user F WHERE
M.uid_fk=U.uid AND F.uid=U.uid AND M.uid_fk = F.uid AND F.status='joining' order by M.msg_id desc ") or die(mysql_error());
That's my SELECT code to show some message and now I want to add 1 condition :
AND M.uid_fk='$uid'
So where I can put that in my complete code.
I already tried but no effects. Or something missing / wrong code?
Please help.
Thank you