SQL-DATABASE ERROR

Database error in WoltLab Burning Board (2.3.6): Invalid SQL: SELECT * FROM bb1_jgs_galerie_bilder WHERE kategorie IN (03,4,5,6,24,25,26,27,28,29,30,31,32,33,35) AND user_id = '7' AND gesperrt = '0' ORDER BY bild_id ASC LIMIT -4, 4
mysql error: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '-4, 4' at line 1
mysql error number: 1064
mysql version: 5.7.20
php version: 5.2.17
Date: 20.10.2018 @ 01:32
Script: /jgs_galerie_userbilder.php?userid=7&bildid=1025&AktuelleUserSeite=1
Referer: