SQL-DATABASE ERROR

Database error in WoltLab Burning Board (2.3.6): Invalid SQL: SELECT * FROM bb1_jgs_galerie_bilder WHERE kategorie IN (0,1,2,3,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,37,44,45,46,47) AND kategorie = '37' 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 MariaDB server version for the right syntax to use near '-7, 7' at line 1
mysql error number: 1064
mysql version: 10.3.39-MariaDB-0ubuntu0.20.04.2
php version: 5.5.38
Date: 21.11.2024 @ 20:54
Script: /jgs_galerie_userbilder.php?bildid=181&kategorie=37
Referer: http://www.forum-thueringen.de/jgs_galerie_userbilder.php?bildid=181&kategorie=37