2006 - MySQL server has gone away

select * from template where template_name = 'beads21cn'

TEP_DB_ERRORR