syndicat-de-l'-imprimerie,-de-la-presse-et-de-la-c test syndicat-de-l'-imprimerie,-de-la-presse-et-de-la-c - test SELECT id FROM tags as a WHERE ( a.nom LIKE 'syndicat-de-l'-imprimerie,-de-la-presse-et-de-la-c' OR a.variations LIKE 'syndicat-de-l'-imprimerie,-de-la-presse-et-de-la-c' ) 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 '-imprimerie,-de-la-presse-et-de-la-c' OR a.variations LIKE 'syndicat-de-l'-imp' at line 1