select distinct beaute_lignes.`uid`,CONCAT(tg.lieu,' ',DATE_FORMAT(tg.date_beau, '%d/%m/%Y')) as beau_uid,CONCAT(s.nom) as sigle,beaute_lignes.`nom_juge`,beaute_lignes.`qualif` from beaute_lignes LEFT JOIN beaute tg ON (tg.uid=beaute_lignes.`beau_uid`) LEFT JOIN beaute tg2 join beaute_sigles s ON (tg2.sigle=s.code) ON (tg2.uid=beaute_lignes.`beau_uid`) where beaute_lignes.chien_uid= LIMIT 0,15
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 'LIMIT 0,15' at line 1