Select id from tm_templates where visible=1 and (keywords like '%speakers%' OR description OR type like '%speakers%') and adult=0 order by id desc limit -100,20
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 '-100,20' at line 1