[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 as CAT_PR on (CAT_PR.ID = BE.ID)
			left join b_catalog_iblock as 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 as 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_864_index F ON BE.ID = F.ELEMENT_ID
					WHERE
						F.SECTION_ID = 3216
						and F.FACET_ID in (58808,58760,59066,58764,58766,59094,59096,59098,59212,59220,59216,59218,59214,58788)
						
			AND (
			
				(((BE.ACTIVE_TO >= now() OR BE.ACTIVE_TO IS NULL) AND (BE.ACTIVE_FROM <= now() OR BE.ACTIVE_FROM IS NULL)))
				AND ((((BE.IBLOCK_ID = '864'))))
				AND ((((CAT_PR.AVAILABLE='Y'))))
			)
			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/local/components/hl/catalog.smart.filter/component.php:57
#3: include(string)
	/home/bitrix/www/bitrix/modules/main/classes/general/component.php:605
#4: CBitrixComponent->__includeComponent()
	/home/bitrix/www/bitrix/modules/main/classes/general/component.php:103
#5: CBitrixComponent->executeComponent()
	/home/bitrix/www/local/components/hl/catalog.smart.filter/class.php:172
#6: CBitrixCatalogSmartFilter->executeComponent()
	/home/bitrix/www/bitrix/modules/main/classes/general/component.php:649
#7: CBitrixComponent->includeComponent(string, array, object)
	/home/bitrix/www/bitrix/modules/main/classes/general/main.php:1040
#8: CAllMain->IncludeComponent(string, string, array, object)
	/home/bitrix/www/local/templates/aspiration/components/bitrix/catalog/catalog/section.php:117
#9: include(string)
	/home/bitrix/www/bitrix/modules/main/classes/general/component_template.php:789
#10: CBitrixComponentTemplate->__IncludePHPTemplate(array, array, string)
	/home/bitrix/www/bitrix/modules/main/classes/general/component_template.php:884
#11: CBitrixComponentTemplate->IncludeTemplate(array)
	/home/bitrix/www/bitrix/modules/main/classes/general/component.php:746
#12: CBitrixComponent->showComponentTemplate()
	/home/bitrix/www/bitrix/modules/main/classes/general/component.php:694
#13: CBitrixComponent->includeComponentTemplate(string)
	/home/bitrix/www/local/components/bitrix/catalog/component.php:181
#14: include(string)
	/home/bitrix/www/bitrix/modules/main/classes/general/component.php:605
#15: CBitrixComponent->__includeComponent()
	/home/bitrix/www/bitrix/modules/main/classes/general/component.php:664
#16: CBitrixComponent->includeComponent(string, array, boolean)
	/home/bitrix/www/bitrix/modules/main/classes/general/main.php:1040
#17: CAllMain->IncludeComponent(string, string, array, boolean)
	/home/bitrix/www/ua/shop/index.php:277
#18: include_once(string)
	/home/bitrix/www/bitrix/modules/main/include/urlrewrite.php:159
#19: 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 on line 137
Call Stack
#TimeMemoryFunctionLocation
18.83688659592Bitrix\Main\Diag\ExceptionHandler->handleException( $exception = class Bitrix\Main\DB\SqlQueryException { protected $query = '\n\t\t\t\t\tSELECT\n\t\t\t\t\t\tF.FACET_ID\n\t\t\t\t\t\t,F.VALUE\n\t\t\t\t\t\t,MIN(F.VALUE_NUM) MIN_VALUE_NUM\n\t\t\t\t\t\t,MAX(F.VALUE_NUM) MAX_VALUE_NUM\n\t\t\t\t\t\t,MAX(case when LOCATE(\'.\', F.VALUE_NUM) > 0 then LENGTH(SUBSTRING_INDEX(F.VALUE_NUM, \'.\', -1)) else 0 end) VALUE_FRAC_LEN\n\t\t\t\t\t\t,COUNT(DISTINCT F.ELEMENT_ID) ELEMENT_COUNT\n\t\t\t\t\tFROM\n\t\t\t\t\t\t\n\t\t\tb_iblock B\n\t\t\tINNER JOIN b_lang L ON B.LID=L.LID\n\t\t\tINNER JOIN b_iblock_element BE ON BE.IBLOCK_ID = B.ID\n\t\t\tleft join b_catalog_product as CAT_PR on (CAT_PR.ID = BE.ID)\n\t\t\tleft join b_catalog_'...; protected $databaseMessage = '(2006) MySQL server has gone away'; protected $message = 'Mysql query error: (2006) MySQL server has gone away'; private ${Exception}string = ''; protected $code = 400; protected $file = '/home/bitrix/www/bitrix/modules/main/lib/db/mysqliconnection.php'; protected $line = 137; private ${Exception}trace = [0 => [...], 1 => [...], 2 => [...], 3 => [...], 4 => [...], 5 => [...], 6 => [...], 7 => [...], 8 => [...], 9 => [...], 10 => [...], 11 => [...], 12 => [...], 13 => [...], 14 => [...], 15 => [...], 16 => [...], 17 => [...], 18 => [...], 19 => [...]]; private ${Exception}previous = NULL; public $xdebug_message = '<tr><th align=\'left\' bgcolor=\'#f57900\' colspan="5"><span style=\'background-color: #cc0000; color: #fce94f; font-size: x-large;\'>( ! )</span> Bitrix\\Main\\DB\\SqlQueryException: Mysql query error: (2006) MySQL server has gone away in /home/bitrix/www/bitrix/modules/main/lib/db/mysqliconnection.php on line <i>137</i></th></tr>\n<tr><th align=\'left\' bgcolor=\'#e9b96e\' colspan=\'5\'>Call Stack</th></tr>\n<tr><th align=\'center\' bgcolor=\'#eeeeec\'>#</th><th align=\'left\' bgcolor=\'#eeeeec\'>Time</th><th align=\'left\' bgcolor'... } ).../exceptionhandler.php:0
( ! ) Bitrix\Main\DB\SqlQueryException: Mysql query error: (2006) MySQL server has gone away in /home/bitrix/www/bitrix/modules/main/lib/db/mysqliconnection.php on line 137
Call Stack
#TimeMemoryFunctionLocation
18.83688659592Bitrix\Main\Diag\ExceptionHandler->handleException( $exception = class Bitrix\Main\DB\SqlQueryException { protected $query = '\n\t\t\t\t\tSELECT\n\t\t\t\t\t\tF.FACET_ID\n\t\t\t\t\t\t,F.VALUE\n\t\t\t\t\t\t,MIN(F.VALUE_NUM) MIN_VALUE_NUM\n\t\t\t\t\t\t,MAX(F.VALUE_NUM) MAX_VALUE_NUM\n\t\t\t\t\t\t,MAX(case when LOCATE(\'.\', F.VALUE_NUM) > 0 then LENGTH(SUBSTRING_INDEX(F.VALUE_NUM, \'.\', -1)) else 0 end) VALUE_FRAC_LEN\n\t\t\t\t\t\t,COUNT(DISTINCT F.ELEMENT_ID) ELEMENT_COUNT\n\t\t\t\t\tFROM\n\t\t\t\t\t\t\n\t\t\tb_iblock B\n\t\t\tINNER JOIN b_lang L ON B.LID=L.LID\n\t\t\tINNER JOIN b_iblock_element BE ON BE.IBLOCK_ID = B.ID\n\t\t\tleft join b_catalog_product as CAT_PR on (CAT_PR.ID = BE.ID)\n\t\t\tleft join b_catalog_'...; protected $databaseMessage = '(2006) MySQL server has gone away'; protected $message = 'Mysql query error: (2006) MySQL server has gone away'; private ${Exception}string = ''; protected $code = 400; protected $file = '/home/bitrix/www/bitrix/modules/main/lib/db/mysqliconnection.php'; protected $line = 137; private ${Exception}trace = [0 => [...], 1 => [...], 2 => [...], 3 => [...], 4 => [...], 5 => [...], 6 => [...], 7 => [...], 8 => [...], 9 => [...], 10 => [...], 11 => [...], 12 => [...], 13 => [...], 14 => [...], 15 => [...], 16 => [...], 17 => [...], 18 => [...], 19 => [...]]; private ${Exception}previous = NULL; public $xdebug_message = '<tr><th align=\'left\' bgcolor=\'#f57900\' colspan="5"><span style=\'background-color: #cc0000; color: #fce94f; font-size: x-large;\'>( ! )</span> Bitrix\\Main\\DB\\SqlQueryException: Mysql query error: (2006) MySQL server has gone away in /home/bitrix/www/bitrix/modules/main/lib/db/mysqliconnection.php on line <i>137</i></th></tr>\n<tr><th align=\'left\' bgcolor=\'#e9b96e\' colspan=\'5\'>Call Stack</th></tr>\n<tr><th align=\'center\' bgcolor=\'#eeeeec\'>#</th><th align=\'left\' bgcolor=\'#eeeeec\'>Time</th><th align=\'left\' bgcolor'... } ).../exceptionhandler.php:0
28.84708725360CAllMain::{closure:/home/bitrix/www/bitrix/modules/main/classes/general/main.php:3410-3417}( ).../main.php:0
38.84708725384ob_end_flush( ).../main.php:3415
48.84708733608CAllMain->EndBufferContent( $content = '\r\n<!-- --><form id=sort-block method=GET class="sort-block tab-control"><div class=theme-select data-toggle="hl.dropdown"><button type=button>За новизною</button><ul><li><label><input type=radio name=sort value=new-desc><span>На початку нові</span></label></li><li><label><input type=radio name=sort value=new-asc><span>Нові в кінці</span></label></li></ul></div><div class=theme-select data-toggle="hl.dropdown"><button type=button>За знижкою</button><ul><li><label><i'..., 9 ).../main.php:3415
58.84718736568ExecuteModuleEventEx( $arEvent = ['SORT' => '100', 'TO_MODULE_ID' => 'main', 'TO_PATH' => '', 'TO_CLASS' => '\\Bitrix\\Main\\Analytics\\Counter', 'TO_METHOD' => 'onBeforeEndBufferContent', 'TO_METHOD_ARG' => [], 'VERSION' => '1', 'TO_NAME' => '\\Bitrix\\Main\\Analytics\\Counter::onBeforeEndBufferContent (main)', 'FROM_DB' => TRUE, 'FROM_MODULE_ID' => 'main', 'MESSAGE_ID' => 'OnBeforeEndBufferContent'], $arParams = [] ).../main.php:3163
68.84718737560Bitrix\Main\Analytics\Counter::onBeforeEndBufferContent( ).../module.php:490
78.84718738072Bitrix\Main\Analytics\SiteSpeed::isIntranetSite( $siteId = 's1' ).../counter.php:93
88.84718738072Bitrix\Main\ORM\Data\DataManager::getList( $parameters = ['select' => [0 => 'LID']] ).../sitespeed.php:95
98.84728739496Bitrix\Main\ORM\Query\Query->exec( ).../datamanager.php:500
108.84738742936Bitrix\Main\ORM\Query\Query->query( $query = 'SELECT \n\t`main_site`.`LID` AS `LID`\nFROM `b_lang` `main_site` \n' ).../query.php:816
118.84738742936Bitrix\Main\DB\Connection->query( $sql = 'SELECT \n\t`main_site`.`LID` AS `LID`\nFROM `b_lang` `main_site` \n' ).../query.php:3304
128.84738742936Bitrix\Main\DB\MysqliConnection->queryInternal( $sql = 'SELECT \n\t`main_site`.`LID` AS `LID`\nFROM `b_lang` `main_site` \n', $binds = [], $trackerQuery = NULL ).../connection.php:330