[Bitrix\Main\DB\SqlQueryException] Mysql query error: (1064) You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')) AND (F.ELEMENT_ID IN (708749,809862)) GROUP BY F.FACET_ID, F.VALUE' at line 20 (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_1_index F ON BE.ID = F.ELEMENT_ID WHERE F.FACET_ID in (1126,1124,1128,460,124,126,442,22,446,448,450,432,434,1126,1124,1128,460,124,126,442,22,446,448,450,432,3) AND (F.SECTION_ID IN (676,)) AND (F.ELEMENT_ID IN (708749,809862)) GROUP BY F.FACET_ID, F.VALUE /home/bitrix/ext_www/umgold.ua/bitrix/modules/main/lib/db/mysqliconnection.php:137 #0: Bitrix\Main\DB\MysqliConnection->queryInternal(string, array, NULL) /home/bitrix/ext_www/umgold.ua/bitrix/modules/main/lib/db/connection.php:330 #1: Bitrix\Main\DB\Connection->query(string) /home/bitrix/ext_www/umgold.ua/bitrix/modules/sotbit.origami/lib/filter/facet.php:351 #2: Sotbit\Origami\Filter\Facet->query(array) /home/bitrix/ext_www/umgold.ua/local/components/sotbit/catalog.smart.filter/component.php:81 #3: include(string) /home/bitrix/ext_www/umgold.ua/bitrix/modules/main/classes/general/component.php:605 #4: CBitrixComponent->__includeComponent() /home/bitrix/ext_www/umgold.ua/bitrix/modules/main/classes/general/component.php:103 #5: CBitrixComponent->executeComponent() /home/bitrix/ext_www/umgold.ua/local/components/sotbit/catalog.smart.filter/class.php:136 #6: CBitrixCatalogSmartFilter->executeComponent() /home/bitrix/ext_www/umgold.ua/bitrix/modules/main/classes/general/component.php:656 #7: CBitrixComponent->includeComponent(string, array, object, boolean) /home/bitrix/ext_www/umgold.ua/bitrix/modules/main/classes/general/main.php:1063 #8: CAllMain->IncludeComponent(string, string, array, object, array) /home/bitrix/ext_www/umgold.ua/local/templates/.default/components/sotbit/news/sotbit_origami_brands/detail.php:151 #9: include(string) /home/bitrix/ext_www/umgold.ua/bitrix/modules/main/classes/general/component_template.php:789 #10: CBitrixComponentTemplate->__IncludePHPTemplate(array, array, string) /home/bitrix/ext_www/umgold.ua/bitrix/modules/main/classes/general/component_template.php:884 #11: CBitrixComponentTemplate->IncludeTemplate(array) /home/bitrix/ext_www/umgold.ua/bitrix/modules/main/classes/general/component.php:764 #12: CBitrixComponent->showComponentTemplate() /home/bitrix/ext_www/umgold.ua/bitrix/modules/main/classes/general/component.php:712 #13: CBitrixComponent->includeComponentTemplate(string) /home/bitrix/ext_www/umgold.ua/local/components/sotbit/news/component.php:223 #14: include(string) /home/bitrix/ext_www/umgold.ua/bitrix/modules/main/classes/general/component.php:605 #15: CBitrixComponent->__includeComponent() /home/bitrix/ext_www/umgold.ua/bitrix/modules/main/classes/general/component.php:680 #16: CBitrixComponent->includeComponent(string, array, boolean, boolean) /home/bitrix/ext_www/umgold.ua/bitrix/modules/main/classes/general/main.php:1063 #17: CAllMain->IncludeComponent(string, string, array, boolean) /home/bitrix/ext_www/umgold.ua/brands/index.php:144 #18: include_once(string) /home/bitrix/ext_www/umgold.ua/bitrix/modules/main/include/urlrewrite.php:159 #19: include_once(string) /home/bitrix/ext_www/umgold.ua/bitrix/urlrewrite.php:2