Error Q1
Got error 28 from storage engine
select distinct pages.*,menu.href as mhref from pages left join menu on menu.href=pages.path where (pages.path='pozdravleniya/poimeni/120/') or (pages.alld=1 and (pages.path='' or pages.path='pozdravleniya/' or pages.path='pozdravleniya/poimeni/' or pages.path='pozdravleniya/poimeni/120/')) order by pages.alld,length(pages.path) desc