[Bitrix\Main\DB\SqlQueryException] 
Mysql query error: (2006) MySQL server has gone away (400)
SELECT 
	`catalog_store_product`.`PRODUCT_ID` AS `PRODUCT_ID`,
	SUM(AMOUNT) AS `SUM`
FROM `b_catalog_store_product` `catalog_store_product` 
LEFT JOIN `b_catalog_store` `catalog_store_product_store` ON `catalog_store_product`.`STORE_ID` = `catalog_store_product_store`.`ID`
LEFT JOIN `b_uts_cat_store` `catalog_store_product_store_uts_object` ON `catalog_store_product_store`.`ID` = `catalog_store_product_store_uts_object`.`VALUE_ID`
WHERE (`catalog_store_product`.`PRODUCT_ID` in (55363))
AND `catalog_store_product_store_uts_object`.`UF_STOCK_REGION` = 12309
AND `catalog_store_product_store_uts_object`.`UF_STOCKTAKING` = 1
AND `catalog_store_product`.`AMOUNT` > 0
AND UPPER(`catalog_store_product_store`.`ACTIVE`) like upper('Y')
GROUP BY `catalog_store_product`.`PRODUCT_ID`
/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:3222
#2: Bitrix\Main\ORM\Query\Query->query(string)
	/home/bitrix/www/bitrix/modules/main/lib/orm/query/query.php:810
#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/local/php_interface/include/classes/Helper/CatalogHelper.php:1310
#5: CatalogHelper::getStoreQuantity(array)
	/home/bitrix/www/local/templates/finestra/components/bitrix/catalog.element/finestra/modifier/store.php:11
#6: require(string)
	/home/bitrix/www/local/templates/finestra/components/bitrix/catalog.element/finestra/result_modifier.php:42
#7: include(string)
	/home/bitrix/www/bitrix/modules/main/classes/general/component_template.php:883
#8: CBitrixComponentTemplate->__IncludeMutatorFile(array, array)
	/home/bitrix/www/bitrix/modules/main/classes/general/component_template.php:790
#9: CBitrixComponentTemplate->IncludeTemplate(array)
	/home/bitrix/www/bitrix/modules/main/classes/general/component.php:745
#10: CBitrixComponent->showComponentTemplate()
	/home/bitrix/www/bitrix/modules/main/classes/general/component.php:693
#11: CBitrixComponent->includeComponentTemplate()
	/home/bitrix/www/bitrix/modules/iblock/lib/component/base.php:4463
#12: Bitrix\Iblock\Component\Base->loadData()
	/home/bitrix/www/bitrix/modules/iblock/lib/component/base.php:4442
#13: Bitrix\Iblock\Component\Base->initialLoadAction()
	/home/bitrix/www/bitrix/modules/iblock/lib/component/element.php:271
#14: Bitrix\Iblock\Component\Element->initialLoadAction()
	
#15: call_user_func(array)
	/home/bitrix/www/bitrix/modules/iblock/lib/component/base.php:4627
#16: Bitrix\Iblock\Component\Base->doAction()
	/home/bitrix/www/bitrix/modules/iblock/lib/component/base.php:4645
#17: Bitrix\Iblock\Component\Base->executeComponent()
	/home/bitrix/www/bitrix/modules/main/classes/general/component.php:648
#18: CBitrixComponent->includeComponent(string, array, object)
	/home/bitrix/www/bitrix/modules/main/classes/general/main.php:1039
#19: CAllMain->IncludeComponent(string, string, array, object)
	/home/bitrix/www/local/templates/finestra/components/bitrix/catalog/finestra/element.php:246
#20: include(string)
	/home/bitrix/www/bitrix/modules/main/classes/general/component_template.php:726
#21: CBitrixComponentTemplate->__IncludePHPTemplate(array, array, string)
	/home/bitrix/www/bitrix/modules/main/classes/general/component_template.php:821
#22: CBitrixComponentTemplate->IncludeTemplate(array)
	/home/bitrix/www/bitrix/modules/main/classes/general/component.php:745
#23: CBitrixComponent->showComponentTemplate()
	/home/bitrix/www/bitrix/modules/main/classes/general/component.php:693
#24: CBitrixComponent->includeComponentTemplate(string)
	/home/bitrix/www/bitrix/components/bitrix/catalog/component.php:171
#25: include(string)
	/home/bitrix/www/bitrix/modules/main/classes/general/component.php:604
#26: CBitrixComponent->__includeComponent()
	/home/bitrix/www/bitrix/modules/main/classes/general/component.php:663
#27: CBitrixComponent->includeComponent(string, array, boolean)
	/home/bitrix/www/bitrix/modules/main/classes/general/main.php:1039
#28: CAllMain->IncludeComponent(string, string, array, boolean)
	/home/bitrix/www/catalog/index.php:418
#29: include_once(string)
	/home/bitrix/www/bitrix/modules/main/include/urlrewrite.php:159
#30: 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(3222): Bitrix\Main\DB\Connection->query('SELECT \n\t`main_...') #2 /home/bitrix/www/bitrix/modules/main/lib/orm/query/query.php(810): 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(490): Bit in /home/bitrix/www/bitrix/modules/main/lib/db/mysqliconnection.php on line 137