select * from smart_banner where b_loc='renew,header_logo' and b_view='Y' and b_home_type='general' and ( (b_sdate <= CURDATE() and b_edate >= CURDATE() ) or b_none_limit = 'Y' ) order by b_idx asc , b_uid asc limit 0, 1
MySQL server has gone away
2006