Erreur de la base de données WordPress : [You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'GROUP BY f.principal_id ORDER BY b.nom, a.nom' at line 5]SELECT STRAIGHT_JOIN f.principal_id, a.id, a.nom, b.id as dpt_id, b.nom as dpt, a.slug, a.cp FROM localites a
INNER JOIN utilitaires f ON f.principal_id = a.id
INNER JOIN localites c ON c.principale_id = a.id
INNER JOIN localites b ON b.id = a.dpt_id WHERE 1 = 1 AND a.dpt_id =
GROUP BY f.principal_id ORDER BY b.nom, a.nom
Erreur de la base de données WordPress : [You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'GROUP BY f.principal_id ORDER BY RAND() LIMIT 0, 10' at line 6]SELECT f.principal_id, a.id, a.nom, b.id as dpt_id, b.nom as dpt, a.slug, a.cp FROM localites a
INNER JOIN utilitaires f ON f.principal_id = a.id AND f.agence!='ada'
INNER JOIN localites b ON b.id = a.dpt_id
INNER JOIN localites c ON c.principale_id = a.id
WHERE 1 = 1 AND a.dpt_id =
GROUP BY f.principal_id ORDER BY RAND() LIMIT 0, 10