office-d'huissier-de-justice-gerard-lehartel-et-da test office-d'huissier-de-justice-gerard-lehartel-et-da - test SELECT id FROM tags as a WHERE ( a.nom LIKE 'office-d'huissier-de-justice-gerard-lehartel-et-da' OR a.variations LIKE 'office-d'huissier-de-justice-gerard-lehartel-et-da' ) 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 'huissier-de-justice-gerard-lehartel-et-da' OR a.variations LIKE 'office-d'huis' at line 1