Du kan bruge en tabel joinforbindelse (f.eks. http://dev.mysql .com/doc/refman/5.0/da/join.html ) for at finde alle anmodningerne.
Faktisk kan du bruge en underforespørgsel her:
SELECT * FROM users_status WHERE userid = "$userid"
OR userid in (SELECT request_to FROM friendships where request_from = "$userid" AND friendship_status = 1)
OR userid in (SELECT request_from FROM friendships where request_to = "$userid" AND friendship_status = 1)
erstatte $userid
med dit bruger-id