SQL-DATABASE ERROR

Database error in WoltLab Burning Board (2.3.6): Invalid SQL: SELECT postid FROM bb1_posts WHERE threadid = '131681' AND visible=1 ORDER BY posttime DESC LIMIT 0, 1
mysql error: Table './usr_web1_1/bb1_posts' is marked as crashed and should be repaired
mysql error number: 145
mysql version: 5.0.32-Debian_7etch5
php version: 5.2.0-8+etch10
Date: 18.11.2017 @ 05:23
Script: /forum/thread.php?goto=lastpost&threadid=131681&sid=a2c879609a63a517d6b502ed699afe69
Referer: