SQL-DATABASE ERROR

Database error in WoltLab Burning Board (2.3.6 pl2): Invalid SQL: SELECT * FROM bb1_jgs_galerie_bilder WHERE kategorie IN (01,2,12,4,5,6,7,8,9,10,11,13,14,17,16,18,19,20,21,22,23,24,25,26,27,28,29,31,34,37,46,38,39,43,48,50,55,56,57,59,67,66,63,64,65,68,69,70) AND kategorie = '26' AND gesperrt = '0' ORDER BY bild_id ASC LIMIT -7, 7
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 '-7, 7' at line 1
mysql error number: 1064
mysql version: 5.7.25
php version: 5.6.40
Date: 23.05.2019 @ 02:36
Script: /forumwbb2/jgs_galerie_userbilder.php?kategorie=26&bildid=8147&amp
Referer: