SQL-DATABASE ERROR

Database error in WoltLab Burning Board (2.3.6): Invalid SQL: SELECT allowratings FROM bb1_boards WHERE boardid =
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 '' at line 1
mysql error number: 1064
mysql version: 10.1.37-MariaDB-0+deb9u1
php version: 5.4.45
Date: 20.01.2019 @ 00:51
Script: /thread.php?postid=
Referer: