select * datiamici where id IN (select id2 as id from amici where id1=id union select id1 as id from amici where id2=id )
Regole del Forum