SELECT a.adv_id,a.adv_name,a.adv_width,a.adv_height,b.advc_file,b.advc_url,b.advc_win from cps_advs a left join cps_advs_con b on a.adv_id = b.adv_id where a.adv_state = 1 and b.advc_state = 1 and a.adv_file = 'top' order by b.advc_orderMySQL server has gone away