$myid = 1; select msg_from FROM msg WHERE msg_to = $myid so am selecting only where msg came from who sent it where all people sent msg to me - my userid 1 msg_from is the id which shows this msg is from this userid from tble users. so msg_to is my userid the acct owner. so msg comes to me. but i need to see who sent them. #### so this is msg_from = userid msg_to = to me. my userid (1) so am selecting all people who sent msg to my userid -my userid 1 bt the problem is in the sql statement bt the rest is ok