[Bitrix\Main\DB\SqlQueryException] 
Mysql query error: (2006) MySQL server has gone away (400)
SELECT 
	`catalog_discount`.`ID` AS `ID`,
	`catalog_discount`.`TYPE` AS `TYPE`,
	`catalog_discount`.`SITE_ID` AS `SITE_ID`,
	`catalog_discount`.`ACTIVE` AS `ACTIVE`,
	`catalog_discount`.`ACTIVE_FROM` AS `ACTIVE_FROM`,
	`catalog_discount`.`ACTIVE_TO` AS `ACTIVE_TO`,
	`catalog_discount`.`RENEWAL` AS `RENEWAL`,
	`catalog_discount`.`NAME` AS `NAME`,
	`catalog_discount`.`SORT` AS `SORT`,
	`catalog_discount`.`MAX_DISCOUNT` AS `MAX_DISCOUNT`,
	`catalog_discount`.`VALUE_TYPE` AS `VALUE_TYPE`,
	`catalog_discount`.`VALUE` AS `VALUE`,
	`catalog_discount`.`CURRENCY` AS `CURRENCY`,
	`catalog_discount`.`PRIORITY` AS `PRIORITY`,
	`catalog_discount`.`LAST_DISCOUNT` AS `LAST_DISCOUNT`,
	`catalog_discount`.`USE_COUPONS` AS `USE_COUPONS`,
	`catalog_discount`.`UNPACK` AS `UNPACK`,
	`catalog_discount`.`CONDITIONS` AS `CONDITIONS`
FROM `b_catalog_discount` `catalog_discount` 

WHERE `catalog_discount`.`ID` IN (604,606,608,609,559,601,667,669,670,602,557,558,730,731,498,745,607,605,749,816,611,610,597,832,834,833,835,849,850,852,845,853,846,855,857,901,902,904,910,928,929,930,931,932,933,934,935,936,937,938,603,939,940,941,942,943,944,945,946,947,948,949,950,951,952,953,954,955,957,965,956,970,972,973,974,975,976,977,978,979,495,983,494,985,989,999,1011,1022,1026,1027,1028,1033,1034,1036,1039,1040,1042,1043,1046,1047,1050,1069,1070,1071,1073,1085,1086,1087,1088,1089,1090,1095,1096,1102,1103,1104,1108,1109,1110,1111,1112,1113,1114,1115,1116,1117,1118,1119,1120,1121,1124,1125,1126,1127,1128,1143,1145,1148,1153,1155,1156,1157,1166,1169,1171,1170,1183,1100,1191,1205,1206,1024,1207,1140,1144,1142,1141,1208,1029,1031,1213,1214,1218,1220,1222,1223,1226,1230,1225,1232,1233,1234,1235,1236,1237,1240,1242,1243,1245,963,1275,1084,1146,1147,1167,1201,1200,811,842,843,810,804,12,664,769,770,771,806,807,808,809,641,642,643,900,959,817,818,819,820,821,980,1091,1092,1093,1094,1122,1149,1150,1151,859,860,1000,1018,1019,1107,1129,1133,1134,1138,1139,1152,1001,1002,1003,1004,1005,1006,1007,1008,1311,1312,854,961,1317,1315,1318,1319,1064,1065,1061,1062,1063,1098,1099,1101,1060,1328,476,477,479,478,1332,480,496,497,598,733,732,1333,828,493,829,830,1330,1331,826,1219,1178,1179,1180,1172,1173,1175,1336,1335,1334,1337,1231,1224,1227,1228,482,1221,1329,1012,831,1340,1181,1217,1341,1342,984,988,990,987,991,992,993,994,1159,1158,1160,1163,1162,1165,500,822,823,824,825,1347,1356,966,1338,1358,1360,1357,750,1045,1044,706,1362,844,1363,1364,1365,1313,971,924,1370,1371,1372,1374,1375,1247,1376,1377,1248,1010,1379,1380,1381,1382,1383,1384,1385,1393,1394,1395,1396,1397,1398,1399,1400,1401,1402,1403,1404,1405,1406,1407,1408,1409,1410,1411,1414,1415,1416,1417,1418,1419,1420,1422,1423,1424,1425,1426,1427,1428,1429,1430,1431,1432,1433,1434,1435,1436,1229,742,1174,986,995,1161,1164,1438,958,1421,1440,1441,1442,1443,1444,1445,1446,1447,1448,1449,1389,1390,1391,1453,1454,1455,1456,1457,1458,1459,1460,1461,1462,1463,1464,1465,1466,1467,1468,1469,1470,1471,1472,1473,1474,1475,1476,1477,1412,1413,1478,1479,1480,1154,1439,1481,1386,1387,1388,1482,1483,1484,1450,1392,1451,1452,1485,1030,1032,847,702,703,1487,1486,1488,1489,1490,1491,1492,1493,1494,1495,1497,1496,1498,1499,1500,1354,1501,1437,1502,1503,1504,1505,1506,1507,1508,1509,1510,1511,1512,1513)
AND `catalog_discount`.`SITE_ID` = 's1'
AND (`catalog_discount`.`TYPE` IS NULL OR `catalog_discount`.`TYPE` = 0)
AND (
	(`catalog_discount`.`ACTIVE_FROM` IS NULL)
	OR `catalog_discount`.`ACTIVE_FROM` <= '2021-01-21 00:54:36'
)
AND (
	(`catalog_discount`.`ACTIVE_TO` IS NULL)
	OR `catalog_discount`.`ACTIVE_TO` >= '2021-01-21 00:54:36'
)
AND `catalog_discount`.`USE_COUPONS` = 'N'
AND `catalog_discount`.`RENEWAL` = 'N'
/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/iblock/classes/general/comp_pricetools.php:223
#5: CIBlockPriceTools::SetCatalogDiscountCache(array, array)
	/home/bitrix/www/bitrix/modules/iblock/lib/component/base.php:723
#6: Bitrix\Iblock\Component\Base->initPrices()
	/home/bitrix/www/bitrix/modules/iblock/lib/component/base.php:4044
#7: Bitrix\Iblock\Component\Base->processResultData()
	/home/bitrix/www/bitrix/modules/iblock/lib/component/element.php:286
#8: Bitrix\Iblock\Component\Element->processResultData()
	/home/bitrix/www/bitrix/modules/iblock/lib/component/base.php:4551
#9: Bitrix\Iblock\Component\Base->loadData()
	/home/bitrix/www/bitrix/modules/iblock/lib/component/base.php:4540
#10: Bitrix\Iblock\Component\Base->initialLoadAction()
	/home/bitrix/www/bitrix/modules/iblock/lib/component/element.php:271
#11: Bitrix\Iblock\Component\Element->initialLoadAction()
	
#12: call_user_func(array)
	/home/bitrix/www/bitrix/modules/iblock/lib/component/base.php:4725
#13: Bitrix\Iblock\Component\Base->doAction()
	/home/bitrix/www/bitrix/modules/iblock/lib/component/base.php:4743
#14: Bitrix\Iblock\Component\Base->executeComponent()
	/home/bitrix/www/bitrix/modules/main/classes/general/component.php:656
#15: CBitrixComponent->includeComponent(string, array, object, boolean)
	/home/bitrix/www/bitrix/modules/main/classes/general/main.php:1041
#16: CAllMain->IncludeComponent(string, string, array, object)
	/home/bitrix/www/bitrix/templates/garfield/components/bitrix/catalog/catalog_gar/element.php:207
#17: include(string)
	/home/bitrix/www/bitrix/modules/main/classes/general/component_template.php:789
#18: CBitrixComponentTemplate->__IncludePHPTemplate(array, array, string)
	/home/bitrix/www/bitrix/modules/main/classes/general/component_template.php:884
#19: CBitrixComponentTemplate->IncludeTemplate(array)
	/home/bitrix/www/bitrix/modules/main/classes/general/component.php:764
#20: CBitrixComponent->showComponentTemplate()
	/home/bitrix/www/bitrix/modules/main/classes/general/component.php:712
#21: CBitrixComponent->includeComponentTemplate(string)
	/home/bitrix/www/bitrix/components/bitrix/catalog/component.php:171
#22: include(string)
	/home/bitrix/www/bitrix/modules/main/classes/general/component.php:605
#23: CBitrixComponent->__includeComponent()
	/home/bitrix/www/bitrix/modules/main/classes/general/component.php:680
#24: CBitrixComponent->includeComponent(string, array, boolean, boolean)
	/home/bitrix/www/bitrix/modules/main/classes/general/main.php:1041
#25: CAllMain->IncludeComponent(string, string, array, boolean)
	/home/bitrix/www/catalog/index.php:606
#26: include_once(string)
	/home/bitrix/www/bitrix/modules/main/include/urlrewrite.php:159
#27: 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