Error Number: 2006

MySQL server has gone away

SELECT `exp_templates`.*, `exp_template_groups`.`group_name` FROM (`exp_templates`) JOIN `exp_template_groups` ON `exp_template_groups`.`group_id` = `exp_templates`.`group_id` WHERE `exp_template_groups`.`site_id` = '5' AND `exp_templates`.`template_name` = 'single-entry' AND `exp_template_groups`.`group_name` = 'site'

Filename: libraries/Template.php

Line Number: 2106