wa'a-sports test wa'a-sports - test SELECT id FROM tags as a WHERE ( a.nom LIKE 'wa'a-sports' OR a.variations LIKE 'wa'a-sports' ) 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 'a-sports' OR a.variations LIKE 'wa'a-sports' )' at line 1