Cyber Monday Merchants

An error occurred: select * from ((select 0 ranks, s.store_id, s.storename,s.country,s.store_url, s.web_address,s.store_logo, s.store_thumbnail, s.small_thumb, c.tracking_link,c.imp_code, date_format(c.exp_date,'%b %d, %Y') as exp_date , date_format(c.start_date,'%b %d, %Y') as start_date , c.coupon_code, c.coupon_desc, c.show_desc, s.show_frame, c.couponname, c.coupon_url,c.coupon_id,c.coupon_type,c.product_image,c.currency,date_format(c.added_date,'%b %d, %Y') as added_date ,c.user_submitted,c.username from coupons c, stores s, coupon_categories ck where c.status = 'ENA' and c.coupon_id = ck.coupon_id and s.store_id = c.store_id and ck.category_id = '41' and (c.exp_date >= CURDATE() or c.exp_date='0000-00-00') order by ck.rank limit 20 ) union (select 1 ranks, s.store_id, s.storename,s.country,s.store_url, s.web_address,s.store_logo, s.store_thumbnail, s.small_thumb, c.tracking_link,c.imp_code, date_format(c.exp_date,'%b %d, %Y') as exp_date , date_format(c.start_date,'%b %d, %Y') as start_date , c.coupon_code, c.coupon_desc, c.show_desc, s.show_frame, c.couponname, c.coupon_url,c.coupon_id,c.coupon_type,c.product_image,c.currency,date_format(c.added_date,'%b %d, %Y') as added_date ,c.user_submitted,c.username from stores s, coupons c where s.store_id=c.store_id and c.status='ENA' and (c.exp_date >= CURDATE() or c.exp_date=0000-00-00) and c.couponname like '%Cyber Monday%' group by c.store_id order by c.exp_date ASC limit 20 )) dasd group by coupon_id order by ranks ASC
2006 -- MySQL server has gone away

An error occurred: select category_id, category ,category_url from categories where ( status='ENA' || status='1' ) and parent_id = '' and parent_id != ''
2006 -- MySQL server has gone away An error occurred: select s.store_id, s.storename, s.country, s.store_url from stores s, store_categories sk where s.store_id = sk.store_id and sk.category_id = 41 and s.status = 'ENA' order by s.added_date DESC LIMIT 20
2006 -- MySQL server has gone away