Erreur : SQLSTATE[42000]: Syntax error or access violation: 1064 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 'AND i.module = "page" AND i.lang_id =1
AND i.illustration = b.id
' at line 6
N∞ : 42000
Query : SELECT i.*,
b.id as b_id, b.titre as b_titre, b.description as b_description, b.illustration as b_illustration, b.lang_id as b_lang_id, b.parent_id as b_parent_id, b.projet_id as b_projet_id, b.type as b_type
FROM `aln_illustration` as i
LEFT JOIN `aln_bibliotheque` as b ON b.id = i.illustration
WHERE i.element_id =
AND i.module = "page" AND i.lang_id =1
AND i.illustration = b.id
AND i.projet_id = 1
AND b.projet_id = 1
ORDER BY i.id ASC
LIMIT 1