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

					SELECT
						`CONDITION`,
						TEMPLATE,
						SITE_ID
					FROM
						b_site_template
					ORDER BY
						SITE_ID,
						CASE
							WHEN IFNULL(LENGTH(`CONDITION`), 0)=0 THEN 2
							ELSE 1
						END,
						SORT
				
/home/bitrix/premium-santehnika.ru/bitrix/modules/main/lib/db/mysqliconnection.php:137
#0: Bitrix\Main\DB\MysqliConnection->queryInternal(string, array, NULL)
	/home/bitrix/premium-santehnika.ru/bitrix/modules/main/lib/db/connection.php:329
#1: Bitrix\Main\DB\Connection->query(string)
	/home/bitrix/premium-santehnika.ru/bitrix/modules/main/classes/general/main.php:4605
#2: CAllSite::GetCurTemplate()
	/home/bitrix/premium-santehnika.ru/bitrix/modules/main/include.php:504
#3: require_once(string)
	/home/bitrix/premium-santehnika.ru/bitrix/modules/main/include/prolog_before.php:14
#4: require_once(string)
	/home/bitrix/premium-santehnika.ru/bitrix/modules/main/include/prolog.php:10
#5: require_once(string)
	/home/bitrix/premium-santehnika.ru/bitrix/header.php:1
#6: require(string)
	/home/bitrix/premium-santehnika.ru/catalog/index.php:2
#7: include_once(string)
	/home/bitrix/premium-santehnika.ru/bitrix/modules/main/include/urlrewrite.php:159
#8: include_once(string)
	/home/bitrix/premium-santehnika.ru/bitrix/urlrewrite.php:2

Fatal error: Uncaught Bitrix\Main\DB\SqlQueryException: Mysql query error: (2006) MySQL server has gone away in /home/bitrix/premium-santehnika.ru/bitrix/modules/main/lib/db/mysqliconnection.php:137 Stack trace: #0 /home/bitrix/premium-santehnika.ru/bitrix/modules/main/lib/db/mysqlcommonconnection.php(132): Bitrix\Main\DB\MysqliConnection->queryInternal('SELECT * FROM `...') #1 /home/bitrix/premium-santehnika.ru/bitrix/modules/main/lib/db/connection.php(715): Bitrix\Main\DB\MysqlCommonConnection->getTableFields('b_sec_session') #2 /home/bitrix/premium-santehnika.ru/bitrix/modules/main/lib/db/sqlhelper.php(387): Bitrix\Main\DB\Connection->getTableField('b_sec_session', 'SESSION_ID') #3 /home/bitrix/premium-santehnika.ru/bitrix/modules/main/lib/entity/datamanager.php(904): Bitrix\Main\DB\SqlHelper->prepareAssignment('b_sec_session', 'SESSION_ID', 'XUFsI4ygB12HMdJ...') #4 /home/bitrix/premium-santehnika.ru/bitrix/modules/security/classes/general/session_db.php(92): Bitrix\Main\Entity\DataManager::delete(Array) #5 [internal f in /home/bitrix/premium-santehnika.ru/bitrix/modules/main/lib/db/mysqliconnection.php on line 137