SQL-DATABASE ERROR

Database error in WoltLab Burning Board (2.3.6 pl2): Invalid SQL: SELECT count(*) FROM bb2_jgs_db_eintrag WHERE userid =
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.2.14-MariaDB
php version: 5.4.16
Date: 19.11.2018 @ 07:20
Script: /u4u/wbb2/jgs_db.php?sid=fc6e297aed41a7063bb4f7a8afa201f5
Referer: