Can't execute query

select company_id from cto_company_master where company_id='371151'

MySQL Error: MySQL server has gone away

This script cannot continue, terminating.