[Bitrix\Main\DB\SqlQueryException] 
Mysql query error: (2006) MySQL server has gone away (400)

				SELECT FROM_MODULE_ID, MESSAGE_ID, SORT, TO_MODULE_ID, TO_PATH,
					TO_CLASS, TO_METHOD, TO_METHOD_ARG, VERSION
				FROM b_module_to_module m2m
					INNER JOIN b_module m ON (m2m.TO_MODULE_ID = m.ID)
				ORDER BY SORT
			
/home/bitrix/www/bitrix/modules/main/lib/db/mysqliconnection.php:137
#0: Bitrix\Main\DB\MysqliConnection->queryInternal(string, array, NULL)
	/home/bitrix/www/bitrix/modules/main/lib/db/connection.php:329
#1: Bitrix\Main\DB\Connection->query(string)
	/home/bitrix/www/bitrix/modules/main/lib/eventmanager.php:242
#2: Bitrix\Main\EventManager->loadEventHandlers()
	/home/bitrix/www/bitrix/modules/main/lib/eventmanager.php:340
#3: Bitrix\Main\EventManager->findEventHandlers(string, string)
	/home/bitrix/www/bitrix/modules/main/classes/general/module.php:340
#4: GetModuleEvents(string, string, boolean)
	/home/bitrix/www/bitrix/modules/main/include.php:262
#5: require_once(string)
	/home/bitrix/www/bitrix/modules/main/include/prolog_before.php:14
#6: require_once(string)
	/home/bitrix/www/bitrix/modules/main/include/prolog.php:10
#7: require_once(string)
	/home/bitrix/www/bitrix/header.php:1
#8: require(string)
	/home/bitrix/www/brand/index.php:2
#9: include_once(string)
	/home/bitrix/www/bitrix/modules/main/include/urlrewrite.php:159
#10: include_once(string)
	/home/bitrix/www/bitrix/urlrewrite.php:2