SELECT A.*,case A.cat_order when 0 then 999 else A.cat_order end as cat_orders,B.sCort from bb_product_category A ,bb_product_category B where A.user_id = '6358' and A.com_id = '9415' and substring(B.sCort,1,length(A.sCort))=A.sCort and A.cat_state = 1 and A.cat_parentid = 0 and A.cat_bbt_state <> 2 group by A.cat_id order by A.cat_orderOut of resources when opening file '/data/tmp/#sql_64af_1.MAD' (Errcode: 24)