SQL Prepare Error

Error Number: HY000

MySQL server has gone away

select count(*) as 'num' from table_product as p where p.type = ? and find_in_set('hienthi',p.status) order by p.numb,p.id desc