SELECT COUNT(*) FROM cdm_textes WHERE url='le-logement' AND id_menu= : 
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 '' at line 1 - SELECT id FROM cdm_textes WHERE url='le-logement' AND id_menu=  
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 '' at line 1 - SELECT COUNT(*) FROM cdm_textes WHERE id_parent= AND accueil_sp=1 : 
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 accueil_sp=1' at line 1 - SELECT url, accueil_texte, titre, accueil_lien, accueil_visuel FROM cdm_textes WHERE id_parent= AND accueil_sp=1 ORDER BY ordre 
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 accueil_sp=1 ORDER BY ordre' at line 1 -