I have 2 tables :
users : contains id and name
friends : contains id1 and id2
Let's suppose I have this data in the users
table :
id : 1 , name : FinalDestiny
id : 2 , name : George
And this data in the friends
table:
id1: 1 , id2: 2
So this means that 1 is friend with 2.
I need with one single query to say that id1
is friend with id2
( but I need the names) Like: FinalDestiny is friend with George. I have to make one mysql inner or left join but I don't know how