@blackx@plasticmirror SELECT `users-relations`.`rel-usr2` AS 'friend-id', `users`.`usr-username` , `users-profile`.`pf-lname` , `users-profile`.`pf-fname`
FROM `users-relations`
JOIN `users` ON `users-relations`.`rel-usr2` = `users`.`usr-id`
LEFT JOIN `users-profile` ON `users-profile`.`usr-id` = `users`.`usr-id`
WHERE `users-relations`.`rel-type` = 1 AND `users-relations`.`rel-usr1` =51
UNION
SELECT `users-relations`.`rel-usr1` AS 'friend-id', `users`.`usr-username` , `users-profile`.`pf-lname` , `users-profile`.`pf-fname`
FROM `users-relations`
JOIN `users` ON `users`.`usr-id` = `users-relations`.`rel-usr1`
LEFT JOIN `users-profile` ON `users-profile`.`usr-id` = `users`.`usr-id`
WHERE `users-relations`.`rel-type` = 1 AND `users-relations`.`rel-usr2` =51