puna-ora:te-reo-o-te-nuna'a test puna-ora:te-reo-o-te-nuna'a - test SELECT id FROM tags as a WHERE ( a.nom LIKE 'puna-ora:te-reo-o-te-nuna'a' OR a.variations LIKE 'puna-ora:te-reo-o-te-nuna'a' ) 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' OR a.variations LIKE 'puna-ora:te-reo-o-te-nuna'a' )' at line 1