Table './imx365/album_albums' is marked as crashed and should be repaired SELECT a.id,a.title,a.amount,img.aid AS img_aid,img.ext AS img_ext, img.upload_datetime AS img_upload_datetime FROM album_albums AS a LEFT JOIN album_inalbum AS i ON a.id = i.album_id LEFT JOIN album_images AS img ON i.image_id = img.id GROUP BY a.id ORDER BY a.id DESC LIMIT 0, 6