Table 'user' is marked as crashed and should be repaired from select * from user u inner join user_profile p on u.user_id = p.user_id where u.user_id not in (2) and u.`status` = 1 order by u.points desc limit 0,5