Invalid query: Table 'tables' is marked as crashed and should be repaired Whole query: SELECT urlname,name,pageviews FROM tables WHERE tablecreated >= CURDATE() - INTERVAL 2 WEEK ORDER BY pageviews DESC LIMIT 20