DB Error 1030 : Got error 122 from storage engine
Query: ( SELECT id , location , location_index , name , summary , category_list , fileUrl , desUrl , type , width , height , template_page FROM idv_seller_ad WHERE template_page='column_right' AND status=1 AND (to_time = 0 OR ( from_time < 1422731362 AND to_time > 1422731362 ) ) ORDER BY ordering desc LIMIT 50 ) UNION ALL ( SELECT id , location , location_index , name , summary , category_list , fileUrl , desUrl , type , width , height , template_page FROM idv_seller_ad WHERE template_page='column_left' AND status=1 AND (to_time = 0 OR ( from_time < 1422731362 AND to_time > 1422731362 ) ) ORDER BY ordering desc LIMIT 50 ) UNION ALL ( SELECT id , location , location_index , name , summary , category_list , fileUrl , desUrl , type , width , height , template_page FROM idv_seller_ad WHERE template_page='footer' AND status=1 AND (to_time = 0 OR ( from_time < 1422731362 AND to_time > 1422731362 ) ) ORDER BY ordering desc LIMIT 50 ) UNION ALL ( SELECT id , location , location_index , name , summary , category_list , fileUrl , desUrl , type , width , height , template_page FROM idv_seller_ad WHERE template_page='header' AND status=1 AND (to_time = 0 OR ( from_time < 1422731362 AND to_time > 1422731362 ) ) ORDER BY ordering desc LIMIT 50 ) UNION ALL ( SELECT a.id , a.location , a.location_index , a.name , a.summary , a.category_list , a.fileUrl , a.desUrl , a.type , a.width , a.height , a.template_page FROM idv_seller_ad a, idv_seller_ad_category c WHERE a.id = c.adId AND ( c.catId = '1' OR c.catId = 0 ) AND a.template_page='product_list' AND a.status=1 AND (a.to_time = 0 OR ( a.from_time < 1422731362 AND a.to_time > 1422731362 ) ) ORDER BY a.ordering desc LIMIT 50 )