"SELECT COUNT(*) AS `Rekordów`, `sender`, `message`, `date`, `status` FROM `message` WHERE (odbiorca = '$odbiorca' OR sender = '$username') OR (odbiorca = '$username' OR sender = '$odbiorca') GROUP BY `sender` ORDER BY `date` DESC"
Już nie wiem jak ustawić te zapytanie, obecnie pobiera dane z pierwszego wpisu. Kilka min temu wstałęm po nocce i nie mogę się skupić.