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