mysql query failed

MySQL server has gone away
select count(id) from sproduct_sf where status =1 and gender in(3,1,2,4) and cid in(1146)