Error Q1
Incorrect key file for table '/tmp/#sql_1eb_0.MYI'; try to repair it
select distinct pages.*,menu.href as mhref from pages left join menu on menu.href=pages.path where (pages.path='pozdravleniya/poimeni/119/') or (pages.alld=1 and (pages.path='' or pages.path='pozdravleniya/' or pages.path='pozdravleniya/poimeni/' or pages.path='pozdravleniya/poimeni/119/')) order by pages.alld,length(pages.path) desc