Table './njsas_db/phorum_messages' is marked as crashed and should be repaired: select phorum_messages.* from phorum_messages where (forum_id = 2 OR forum_id=0) and thread=163870 AND phorum_messages.status =2 order by message_id LIMIT 0,20