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