ASSOCIATION-DES-PARENTS-D'ELEVES-DE-L'ECOLE-MATERNELLE-PROTESTANTE-DE-TAUNOA test ASSOCIATION-DES-PARENTS-D'ELEVES-DE-L'ECOLE-MATERNELLE-PROTESTANTE-DE-TAUNOA - test SELECT id FROM tags as a WHERE ( a.nom LIKE 'association-des-parents-d'eleves-de-l'ecole-maternelle-protestante-de-taunoa' OR a.variations LIKE 'association-des-parents-d'eleves-de-l'ecole-maternelle-protestante-de-taunoa' ) 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 'eleves-de-l'ecole-maternelle-protestante-de-taunoa' OR a.variations LIKE 'asso' at line 1