SQL-DATABASE ERROR

Database error in WoltLab Burning Board (2.3.6): Invalid SQL: SELECT * FROM bb1_info_hoerspiele WHERE threadid = LIMIT 1
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 'LIMIT 1' at line 1
mysql error number: 1064
mysql version: 10.5.26-MariaDB-0+deb11u2-log
php version: 5.6.40
Date: 08.10.2024 @ 04:39
Script: /thread.php?hsp_id=1045&sid=123ad77a917e2a9d67c50f492df9056a
Referer: