« MODx Parse Error »

MODx encountered the following error while attempting to parse the requested resource:
« Execution of a query to the database failed - MySQL server has gone away »
      SQL: SELECT DISTINCT sc.id, sc.menutitle, sc.pagetitle, sc.introtext, sc.menuindex, sc.published, sc.hidemenu, sc.parent, sc.isfolder, sc.description, sc.alias, sc.longtitle, sc.type,if(sc.type='reference',sc.content,'') as content, sc.template, sc.link_attributes FROM `inakoin_mbd`.`modx_site_content` sc LEFT JOIN `inakoin_mbd`.`modx_document_groups` dg ON dg.document = sc.id WHERE sc.published=1 AND sc.deleted=0 AND (sc.privateweb=0) AND sc.hidemenu=0 AND sc.id IN (1,3,4,5,6) GROUP BY sc.id ORDER BY sc.menuindex ASC ;
      [Copy SQL to ClipBoard]
 
Parser timing
  MySQL: 0.0030 s(0 Requests)
  PHP: 10.7969 s 
  Total: 10.8000 s 
Error while inserting event log into database.