[Bitrix\Main\DB\SqlQueryException] 
Mysql query error: (2006) MySQL server has gone away (400)
SELECT 
	`iblock_element`.`ID` AS `ID`,
	`iblock_element`.`IBLOCK_ID` AS `IBLOCK_ID`
FROM `b_iblock_element` `iblock_element` 

WHERE `iblock_element`.`ID` IN (25863)
/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/entity/query.php:3038
#2: Bitrix\Main\Entity\Query->query(string)
	/home/bitrix/www/bitrix/modules/main/lib/entity/query.php:797
#3: Bitrix\Main\Entity\Query->exec()
	/home/bitrix/www/bitrix/modules/main/lib/entity/datamanager.php:290
#4: Bitrix\Main\Entity\DataManager::getList(array)
	/home/bitrix/www/bitrix/modules/catalog/lib/discount/discountmanager.php:1083
#5: Bitrix\Catalog\Discount\DiscountManager::getProductIblocks(array)
	/home/bitrix/www/bitrix/modules/catalog/lib/discount/discountmanager.php:774
#6: Bitrix\Catalog\Discount\DiscountManager::extendOrderData(object)
	
#7: call_user_func_array(array, array)
	/home/bitrix/www/bitrix/modules/main/lib/eventmanager.php:442
#8: Bitrix\Main\EventManager->sendToEventHandler(array, object)
	/home/bitrix/www/bitrix/modules/main/lib/eventmanager.php:378
#9: Bitrix\Main\EventManager->send(object)
	/home/bitrix/www/bitrix/modules/main/lib/event.php:142
#10: Bitrix\Main\Event->send()
	/home/bitrix/www/bitrix/modules/sale/lib/discount.php:5050
#11: Bitrix\Sale\Discount->extendOrderData()
	/home/bitrix/www/bitrix/modules/sale/lib/discount.php:5365
#12: Bitrix\Sale\Discount->executeDiscountList()
	/home/bitrix/www/bitrix/modules/sale/lib/discount.php:1638
#13: Bitrix\Sale\Discount->calculateFull()
	/home/bitrix/www/bitrix/modules/sale/lib/discount.php:594
#14: Bitrix\Sale\Discount->calculate()
	/home/bitrix/www/bitrix/modules/catalog/general/discount.php:1113
#15: CAllCatalogDiscount::getSaleDiscountsByProduct(array, string, array, array, boolean)
	/home/bitrix/www/bitrix/modules/catalog/general/discount.php:1237
#16: CAllCatalogDiscount::GetDiscount(integer, integer, array, array, string, string, boolean)
	/home/bitrix/www/bitrix/modules/catalog/general/product.php:1119
#17: CAllCatalogProduct::GetOptimalPrice(integer)
	/home/bitrix/www/bitrix/modules/arturgolubev.gremarketing/include.php:721
#18: CArturgolubevGremarketing::_getElemtnByEID(integer)
	/home/bitrix/www/bitrix/modules/arturgolubev.gremarketing/include.php:679
#19: CArturgolubevGremarketing::getElemtnByEID(integer)
	/home/bitrix/www/bitrix/modules/arturgolubev.gremarketing/include.php:109
#20: CArturgolubevGremarketing::makePageScript()
	/home/bitrix/www/bitrix/modules/arturgolubev.gremarketing/include.php:34
#21: CArturgolubevGremarketing::onBufferContent(string)
	/home/bitrix/www/bitrix/modules/main/classes/general/module.php:490
#22: ExecuteModuleEventEx(array, array)
	/home/bitrix/www/bitrix/modules/main/classes/general/main.php:3190
#23: CAllMain->EndBufferContent(string)
	/home/bitrix/www/bitrix/modules/main/classes/general/main.php:3138
#24: CAllMain->EndBufferContentMan()
	/home/bitrix/www/bitrix/modules/main/include/epilog_after.php:36
#25: require(string)
	/home/bitrix/www/bitrix/modules/main/include/epilog.php:3
#26: require_once(string)
	/home/bitrix/www/bitrix/footer.php:4
#27: require(string)
	/home/bitrix/www/catalog/index.php:808
#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