Table './imx365/album_albums' is marked as crashed and should be repaired SELECT a.* FROM album_albums AS a LEFT JOIN album_inalbum AS i ON a.id = i.album_id WHERE a.userid = 174747 AND i.image_id = 99801