Incorrect key file for table '/tmp/#sql_3a7_0.MYI'; try to repair it
select t2.idtheme, t2.nom, sum(10 - t1.score) themescore from book_assoc_theme_top t1 inner join book_theme_nom t2 on t2.idtheme=t1.idtheme and t2.idln='1' and t1.idln='1' where t1.idbook in (-1,38797) group by t2.idtheme, t2.nom order by themescore desc limit 6