Auto-ecole-du-Pont-de-l'Est test Auto-ecole-du-Pont-de-l'Est - test SELECT id FROM tags as a WHERE ( a.nom LIKE 'auto-ecole-du-pont-de-l'est' OR a.variations LIKE 'auto-ecole-du-pont-de-l'est' ) 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 'est' OR a.variations LIKE 'auto-ecole-du-pont-de-l'est' )' at line 1