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