I want to create mysql request to the server I want to retrieve users from the table that as I do not have in friends list.
Here's how I'm trying to learn but I do not receive please help me
SELECT
t1.*, t2.*
FROM
users as t1,
friends as t2
WHERE
t2.user_id='1'
and t2.fr_id!=t1.id
ORDER BY RAND()