Invalid query b - SELECT DISTINCT id_relations, tip_1, id_1, tip_2, id_2, status FROM relations WHERE ((tip_1= 'mesaj') AND (id_1= '26605')) OR ((tip_2= 'mesaj') AND (id_2= '26605')) ORDER BY status, id_relations DESC Too many connections