Каталог
[Bitrix\Main\DB\SqlQueryException] 
Mysql query error: (2006) MySQL server has gone away (400)

					SELECT
						F.FACET_ID
						,F.VALUE
						,MIN(F.VALUE_NUM) MIN_VALUE_NUM
						,MAX(F.VALUE_NUM) MAX_VALUE_NUM
						,MAX(case when LOCATE('.', F.VALUE_NUM) > 0 then LENGTH(SUBSTRING_INDEX(F.VALUE_NUM, '.', -1)) else 0 end) VALUE_FRAC_LEN
						,COUNT(DISTINCT F.ELEMENT_ID) ELEMENT_COUNT
					FROM
						
			b_iblock B
			INNER JOIN b_lang L ON B.LID=L.LID
			INNER JOIN b_iblock_element BE ON BE.IBLOCK_ID = B.ID
			 left join b_catalog_product CAT_PR on (CAT_PR.ID = BE.ID)  left join b_catalog_iblock CAT_IB on ((CAT_PR.VAT_ID IS NULL OR CAT_PR.VAT_ID = 0) AND CAT_IB.IBLOCK_ID = BE.IBLOCK_ID)  left join b_catalog_vat CAT_VAT on (CAT_VAT.ID = IF((CAT_PR.VAT_ID IS NULL OR CAT_PR.VAT_ID = 0), CAT_IB.VAT_ID, CAT_PR.VAT_ID)) 

		
							INNER JOIN b_iblock_26_index F ON BE.ID = F.ELEMENT_ID
					WHERE
						F.SECTION_ID = 4012
						and F.FACET_ID in (1360,1370,1372,1374,1376,1378,1380,1382,1384,1386,1388,1390,1392,1394,1396,1398,1400,1402,1404,1406,1432,1434,1436,1438,914,916,918,920,922,924,938,1300,1310,1286,1296,940,894,936,1210,1212,1214,1216,1220,1228,1230,1232,1312,1314,1316,1318,3)
						
			AND (
			
				(((BE.ACTIVE_TO >= now() OR BE.ACTIVE_TO IS NULL) AND (BE.ACTIVE_FROM <= now() OR BE.ACTIVE_FROM IS NULL)))
				AND ((((CAT_PR.AVAILABLE='Y'))))
				AND ((((BE.IBLOCK_ID = '26'))))
			)
			AND (((BE.WF_STATUS_ID=1 AND BE.WF_PARENT_ELEMENT_ID IS NULL)))
			AND ((
				B.ID IN (
			SELECT IBLOCK_ID
			FROM b_iblock_group IBG
			WHERE IBG.GROUP_ID IN (2)
			AND IBG.PERMISSION >= 'R'
		
				AND (IBG.PERMISSION='X' OR B.ACTIVE='Y')
			)
				OR (B.RIGHTS_MODE = 'E' AND EXISTS (
				SELECT ER.ELEMENT_ID
				FROM b_iblock_element_right ER
				INNER JOIN b_iblock_right IBR ON IBR.ID = ER.RIGHT_ID
				INNER JOIN b_user_access UA ON UA.ACCESS_CODE = IBR.GROUP_CODE AND UA.USER_ID = 0
				WHERE ER.ELEMENT_ID = BE.ID
				AND IBR.OP_EREAD = 'Y'
				
			))
			))
					GROUP BY
						F.FACET_ID, F.VALUE
				
/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/iblock/lib/propertyindex/facet.php:340
#2: Bitrix\Iblock\PropertyIndex\Facet->query(array)
	/home/bitrix/www/bitrix/components/bitrix/catalog.smart.filter/component.php:54
#3: include(string)
	/home/bitrix/www/bitrix/modules/main/classes/general/component.php:594
#4: CBitrixComponent->__includeComponent()
	/home/bitrix/www/bitrix/modules/main/classes/general/component.php:102
#5: CBitrixComponent->executeComponent()
	/home/bitrix/www/bitrix/components/bitrix/catalog.smart.filter/class.php:130
#6: CBitrixCatalogSmartFilter->executeComponent()
	/home/bitrix/www/bitrix/modules/main/classes/general/component.php:638
#7: CBitrixComponent->includeComponent(string, array, object)
	/home/bitrix/www/bitrix/modules/main/classes/general/main.php:1038
#8: CAllMain->IncludeComponent(string, string, array, object, array)
	/home/bitrix/www/bitrix/templates/market_column/components/alexkova.market/catalog/template1/section_vertical.php:127
#9: include(string)
	/home/bitrix/www/bitrix/templates/market_column/components/alexkova.market/catalog/template1/section.php:88
#10: include(string)
	/home/bitrix/www/bitrix/modules/main/classes/general/component_template.php:725
#11: CBitrixComponentTemplate->__IncludePHPTemplate(array, array, string)
	/home/bitrix/www/bitrix/modules/main/classes/general/component_template.php:820
#12: CBitrixComponentTemplate->IncludeTemplate(array)
	/home/bitrix/www/bitrix/modules/main/classes/general/component.php:735
#13: CBitrixComponent->showComponentTemplate()
	/home/bitrix/www/bitrix/modules/main/classes/general/component.php:683
#14: CBitrixComponent->includeComponentTemplate(string)
	/home/bitrix/www/bitrix/components/alexkova.market/catalog/component.php:151
#15: include(string)
	/home/bitrix/www/bitrix/modules/main/classes/general/component.php:594
#16: CBitrixComponent->__includeComponent()
	/home/bitrix/www/bitrix/modules/main/classes/general/component.php:653
#17: CBitrixComponent->includeComponent(string, array, boolean)
	/home/bitrix/www/bitrix/modules/main/classes/general/main.php:1038
#18: CAllMain->IncludeComponent(string, string, array, boolean)
	/home/bitrix/www/catalog/index.php:534
#19: include_once(string)
	/home/bitrix/www/bitrix/modules/main/include/urlrewrite.php:159
#20: include_once(string)
	/home/bitrix/www/bitrix/urlrewrite.php:2
#21: require(string)
	/home/bitrix/www/bitrix/old2new.php:40