$query ="SELECT * FROM friends WHERE (user_id1 ='$myrow['id']'OR user_id2='$myrow['id']') AND status='0'";
$query ="SELECT * FROM friends WHERE status='0' AND user_id1 OR user_id2 =".$myrow ['id'];
"SELECT * FROM friends WHERE status = 0 AND ( user_id1 = ". $myrow ['id'] ." OR user_id2 = ". $myrow ['id'] . ")"