Query: st.*, stf1.value AS image, stf2.value AS intro, stf3.value AS title FROM site_text st LEFT JOIN site_text_extra_fields stf1 ON (stf1.parent_id = st.id AND stf1.code = "image") LEFT JOIN site_text_extra_fields stf2 ON (stf2.parent_id = st.id AND stf2.code = "intro") LEFT JOIN site_text_extra_fields stf3 ON (stf3.parent_id = st.id AND stf3.code = "title") WHERE st.parent_id = 3 AND st.pos_show = "y" ORDER BY st.sort_order, st.date DESC LIMIT -20, 20
Error: 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 '-20, 20' at line 1