cooperative-scolaire-de-la-section-d'education-specialisee(ses)du-coll test cooperative-scolaire-de-la-section-d'education-specialisee(ses)du-coll - test SELECT id FROM tags as a WHERE ( a.nom LIKE 'cooperative-scolaire-de-la-section-d'education-specialisee(ses)du-coll' OR a.variations LIKE 'cooperative-scolaire-de-la-section-d'education-specialisee(ses)du-coll' ) 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 'education-specialisee(ses)du-coll' OR a.variations LIKE 'cooperative-scolaire-' at line 1