1064 - 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

select id from gallery_sets where active and needs_processing = 0 order by featured desc, featured_order asc, date_added desc limit -20, 20

[TEP STOP]