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 status.refSection=1 AND status.refContent=section.ID AND status.' at line 17 Query: SELECT section.ID as id, status.status as status, section.test_content, section.home, section.rss,, section.orderRec, section.dtePubFrom, section.dtePubTo, section.creationDate, section.modifiedDate, section.editor, fr.text as title, fr1.text as content FROM cms_contenusimple as section LEFT JOIN cms_language_status as status ON status.refContent=section.ID LEFT JOIN v_trad_fr as fr ON fr.ID=section.title LEFT JOIN v_trad_fr as fr1 ON fr1.ID=section.content WHERE section.ID= AND status.refSection=1 AND status.refContent=section.ID AND status.refLang='fr' AND fr.ID=section.title