Select id from tm_templates where visible=1 and (keywords_fr like '%chien-d'arrêt%' OR description like '%chien-d'arrêt%') and adult=0 order by id desc
You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'arrêt%' OR description like '%chien-d'arrêt%') and adult=0 order by id de' at line 1