SQL Prepare Error

Error Number: HY000

MySQL server has gone away

select photo, link from table_photo where type = ? and find_in_set('hienthi',status) order by numb,id desc