[Bitrix\Main\DB\SqlQueryException] 
Mysql query error: (2006) MySQL server has gone away (400)
SELECT 
	`catalog_catalog_viewed_product`.`PRODUCT_ID` AS `PRODUCT_ID`,
	`catalog_catalog_viewed_product`.`ELEMENT_ID` AS `ELEMENT_ID`,
	`catalog_catalog_viewed_product`.`ID` AS `UALIAS_0`
FROM `b_catalog_viewed_product` `catalog_catalog_viewed_product` 

WHERE `catalog_catalog_viewed_product`.`FUSER_ID` = 12382844
AND `catalog_catalog_viewed_product`.`SITE_ID` = 's1'
ORDER BY `catalog_catalog_viewed_product`.`DATE_VISIT` DESC
LIMIT 0, 10

/home/bitrix/ext_www/roszap.com.ua/bitrix/modules/main/lib/db/mysqliconnection.php:137
#0: Bitrix\Main\DB\MysqliConnection->queryInternal
	/home/bitrix/ext_www/roszap.com.ua/bitrix/modules/main/lib/db/connection.php:330
#1: Bitrix\Main\DB\Connection->query
	/home/bitrix/ext_www/roszap.com.ua/bitrix/modules/main/lib/orm/query/query.php:3398
#2: Bitrix\Main\ORM\Query\Query->query
	/home/bitrix/ext_www/roszap.com.ua/bitrix/modules/main/lib/orm/query/query.php:825
#3: Bitrix\Main\ORM\Query\Query->exec
	/home/bitrix/ext_www/roszap.com.ua/bitrix/modules/main/lib/orm/data/datamanager.php:500
#4: Bitrix\Main\ORM\Data\DataManager::getList
	/home/bitrix/ext_www/roszap.com.ua/local/templates/roszap/header.php:131
#5: include_once(string)
	/home/bitrix/ext_www/roszap.com.ua/bitrix/modules/main/include/prolog_after.php:106
#6: require(string)
	/home/bitrix/ext_www/roszap.com.ua/bitrix/modules/main/include/prolog.php:11
#7: require_once(string)
	/home/bitrix/ext_www/roszap.com.ua/bitrix/header.php:1
#8: require(string)
	/home/bitrix/ext_www/roszap.com.ua/catalog/index.php:3
#9: include_once(string)
	/home/bitrix/ext_www/roszap.com.ua/bitrix/modules/main/include/urlrewrite.php:159
#10: include_once(string)
	/home/bitrix/ext_www/roszap.com.ua/bitrix/urlrewrite.php:2

( ! ) Fatal error: Uncaught Bitrix\Main\DB\SqlQueryException: Mysql query error: (2006) MySQL server has gone away in /home/bitrix/ext_www/roszap.com.ua/bitrix/modules/main/lib/db/mysqliconnection.php on line 137
Call Stack
#TimeMemoryFunctionLocation
14.59134362192Bitrix\Main\Diag\ExceptionHandler->handleException( ).../exceptionhandler.php:0
( ! ) Bitrix\Main\DB\SqlQueryException: Mysql query error: (2006) MySQL server has gone away in /home/bitrix/ext_www/roszap.com.ua/bitrix/modules/main/lib/db/mysqliconnection.php on line 137
Call Stack
#TimeMemoryFunctionLocation
14.59134362192Bitrix\Main\Diag\ExceptionHandler->handleException( ).../exceptionhandler.php:0
24.59634363976CAllMain::{closure:/home/bitrix/ext_www/roszap.com.ua/bitrix/modules/main/classes/general/main.php:3414-3421}( ).../main.php:0
34.59644364000ob_end_flush ( ).../main.php:3419
44.59644366592CMain->EndBufferContent( ).../main.php:3419
54.59644367664ExecuteModuleEventEx( ).../main.php:3167
64.59814366968Bitrix\Main\Analytics\Counter::onBeforeEndBufferContent( ).../module.php:480
74.59934367256Bitrix\Main\Analytics\SiteSpeed::isIntranetSite( ).../counter.php:92
84.59934367256Bitrix\Main\ORM\Data\DataManager::getList( ).../sitespeed.php:95
94.59934368680Bitrix\Main\ORM\Query\Query->exec( ).../datamanager.php:500
104.60004372128Bitrix\Main\ORM\Query\Query->query( ).../query.php:825
114.60004372128Bitrix\Main\DB\MysqliConnection->query( ).../query.php:3398
124.60004372128Bitrix\Main\DB\MysqliConnection->queryInternal( ).../connection.php:330