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 '-10,10' at line 3 in SELECT e.id,e.title,e.tech_name,e.hide_c,e.ra,t.short_text,t.text FROM `elements_lt` as e, `texts_lt` as t WHERE e.id=t.id AND e.parent='8' ORDER BY id DESC LIMIT -10,10