I have to tables in MySQL database, USERS and FRIENDS. They have this structure:
USERS TABLE:
FRIENDS TABLE (two users are friends ONLY if exists two rows like in the image):
I want to create a MySQL query in PHP to SELECT the nombre (name) of the users that are my friends. I read that I have to use the operator LEFT JOIN but I did not succeed.
Thank you!