2013 - Lost connection to MySQL server during query

select * from template where template_name = 'beads21cn'

TEP_DB_ERRORR