SELECT b.id, b.dmid, b.title, b.author, b.cover_img_url, b.description, p.tc_name as publisher FROM book b JOIN publisher p ON b.publisher_id=p.id WHERE status='enable' ORDER BY RAND() LIMIT 15 Incorrect key file for table '/tmp/#sql_c03_0.MYI'; try to repair it