[Bitrix\Main\DB\SqlQueryException] 
Mysql query error: (2006) MySQL server has gone away (400)
SELECT 
	`catalog_catalog_viewed_product`.`ID` AS `ID`,
	`catalog_catalog_viewed_product`.`PRODUCT_ID` AS `PRODUCT_ID`,
	`catalog_catalog_viewed_product`.`DATE_VISIT` AS `DATE_VISIT`,
	`catalog_catalog_viewed_product`.`SITE_ID` AS `LID`,
	`catalog_catalog_viewed_product_element`.`NAME` AS `NAME`,
	`catalog_catalog_viewed_product_element`.`ID` AS `UALIAS_0`
FROM `b_catalog_viewed_product` `catalog_catalog_viewed_product` 
INNER JOIN `b_iblock_element` `catalog_catalog_viewed_product_element` ON `catalog_catalog_viewed_product`.`PRODUCT_ID` = `catalog_catalog_viewed_product_element`.`ID`
WHERE `catalog_catalog_viewed_product`.`PRODUCT_ID` = 87416
AND `catalog_catalog_viewed_product`.`DATE_VISIT` > '2020-12-02 11:57:52'
AND UPPER(`catalog_catalog_viewed_product`.`SITE_ID`) like upper('s1')
ORDER BY `DATE_VISIT` DESC
LIMIT 0, 100

/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:330
#1: Bitrix\Main\DB\Connection->query(string)
	/home/bitrix/www/bitrix/modules/main/lib/orm/query/query.php:3398
#2: Bitrix\Main\ORM\Query\Query->query(string)
	/home/bitrix/www/bitrix/modules/main/lib/orm/query/query.php:825
#3: Bitrix\Main\ORM\Query\Query->exec()
	/home/bitrix/www/bitrix/modules/main/lib/orm/data/datamanager.php:500
#4: Bitrix\Main\ORM\Data\DataManager::getList(array)
	/home/bitrix/www/bitrix/modules/sale/mysql/product.php:498
#5: CSaleViewedProduct::GetList(array, array, array, boolean, array)
	/home/bitrix/www/local/templates/gts/components/bitrix/catalog.element/.default/result_modifier.php:555
#6: include(string)
	/home/bitrix/www/bitrix/modules/main/classes/general/component_template.php:946
#7: CBitrixComponentTemplate->__IncludeMutatorFile(array, array)
	/home/bitrix/www/bitrix/modules/main/classes/general/component_template.php:853
#8: CBitrixComponentTemplate->IncludeTemplate(array)
	/home/bitrix/www/bitrix/modules/main/classes/general/component.php:764
#9: CBitrixComponent->showComponentTemplate()
	/home/bitrix/www/bitrix/modules/main/classes/general/component.php:712
#10: CBitrixComponent->includeComponentTemplate()
	/home/bitrix/www/bitrix/modules/iblock/lib/component/base.php:4561
#11: Bitrix\Iblock\Component\Base->loadData()
	/home/bitrix/www/bitrix/modules/iblock/lib/component/base.php:4540
#12: Bitrix\Iblock\Component\Base->initialLoadAction()
	/home/bitrix/www/bitrix/modules/iblock/lib/component/element.php:271
#13: Bitrix\Iblock\Component\Element->initialLoadAction()
	
#14: call_user_func(array)
	/home/bitrix/www/bitrix/modules/iblock/lib/component/base.php:4725
#15: Bitrix\Iblock\Component\Base->doAction()
	/home/bitrix/www/bitrix/modules/iblock/lib/component/base.php:4743
#16: Bitrix\Iblock\Component\Base->executeComponent()
	/home/bitrix/www/bitrix/modules/main/classes/general/component.php:656
#17: CBitrixComponent->includeComponent(string, array, object, boolean)
	/home/bitrix/www/bitrix/modules/main/classes/general/main.php:1063
#18: CAllMain->IncludeComponent(string, string, array, object)
	/home/bitrix/www/local/components/gts/catalog/templates/.default/element.php:188
#19: include(string)
	/home/bitrix/www/bitrix/modules/main/classes/general/component_template.php:789
#20: CBitrixComponentTemplate->__IncludePHPTemplate(array, array, string)
	/home/bitrix/www/bitrix/modules/main/classes/general/component_template.php:884
#21: CBitrixComponentTemplate->IncludeTemplate(array)
	/home/bitrix/www/bitrix/modules/main/classes/general/component.php:764
#22: CBitrixComponent->showComponentTemplate()
	/home/bitrix/www/bitrix/modules/main/classes/general/component.php:712
#23: CBitrixComponent->includeComponentTemplate(string)
	/home/bitrix/www/local/components/gts/catalog/component.php:177
#24: include(string)
	/home/bitrix/www/bitrix/modules/main/classes/general/component.php:605
#25: CBitrixComponent->__includeComponent()
	/home/bitrix/www/bitrix/modules/main/classes/general/component.php:680
#26: CBitrixComponent->includeComponent(string, array, boolean, boolean)
	/home/bitrix/www/bitrix/modules/main/classes/general/main.php:1063
#27: CAllMain->IncludeComponent(string, string, array, boolean)
	/home/bitrix/www/catalog/index.php:280
#28: include_once(string)
	/home/bitrix/www/bitrix/modules/main/include/urlrewrite.php:159
#29: include_once(string)
	/home/bitrix/www/bitrix/urlrewrite.php:2

Fatal error: Uncaught Bitrix\Main\DB\SqlQueryException: Mysql query error: (2006) MySQL server has gone away in /home/bitrix/www/bitrix/modules/main/lib/db/mysqliconnection.php:137 Stack trace: #0 /home/bitrix/www/bitrix/modules/main/lib/db/connection.php(330): Bitrix\Main\DB\MysqliConnection->queryInternal('SELECT \n\t`main_...', Array, NULL) #1 /home/bitrix/www/bitrix/modules/main/lib/orm/query/query.php(3398): Bitrix\Main\DB\Connection->query('SELECT \n\t`main_...') #2 /home/bitrix/www/bitrix/modules/main/lib/orm/query/query.php(825): Bitrix\Main\ORM\Query\Query->query('SELECT \n\t`main_...') #3 /home/bitrix/www/bitrix/modules/main/lib/orm/data/datamanager.php(500): Bitrix\Main\ORM\Query\Query->exec() #4 /home/bitrix/www/bitrix/modules/main/lib/analytics/sitespeed.php(95): Bitrix\Main\ORM\Data\DataManager::getList(Array) #5 /home/bitrix/www/bitrix/modules/main/lib/analytics/counter.php(92): Bitrix\Main\Analytics\SiteSpeed::isIntranetSite('s1') #6 /home/bitrix/www/bitrix/modules/main/classes/general/module.php(480): Bit in /home/bitrix/www/bitrix/modules/main/lib/db/mysqliconnection.php on line 137