Error

Error: 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 noticies_img.lang='es' ORDER BY noticies_img.ordre DESC' at line 1
Query: SELECT SQL_CALC_FOUND_ROWS noticies_img.path, noticies_img.nom, noticies_img.text, noticies_img.id, noticies_img.lang, noticies_img.ordre, noticies_img.noticia_id FROM noticies_img WHERE noticia_id = AND noticies_img.lang='es' ORDER BY noticies_img.ordre DESC