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