[Bitrix\Main\DB\SqlQueryException] 
Mysql query error: (1064) You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '' at line 5 (400)
SELECT
              `IBLOCK_PROPERTY_ID`,
              `VALUE`
            FROM `b_iblock_element_property`
            WHERE `IBLOCK_PROPERTY_ID` IN (24, 25, 26) AND `IBLOCK_ELEMENT_ID`=
/web/sites/formproduction.ru/www/bitrix/modules/main/lib/db/mysqliconnection.php:137
#0: Bitrix\Main\DB\MysqliConnection->queryInternal(string, array, NULL)
	/web/sites/formproduction.ru/www/bitrix/modules/main/lib/db/connection.php:329
#1: Bitrix\Main\DB\Connection->query(string)
	/web/sites/formproduction.ru/www/local/modules/form/classes/FormPortfolio.php:64
#2: FormPortfolio->getItem()
	/web/sites/formproduction.ru/www/local/components/form/portfolio.detail/component.php:36
#3: include(string)
	/web/sites/formproduction.ru/www/bitrix/modules/main/classes/general/component.php:548
#4: CBitrixComponent->__includeComponent()
	/web/sites/formproduction.ru/www/bitrix/modules/main/classes/general/component.php:600
#5: CBitrixComponent->includeComponent(string, array, NULL)
	/web/sites/formproduction.ru/www/bitrix/modules/main/classes/general/main.php:1035
#6: CAllMain->IncludeComponent(string, string, array)
	/web/sites/formproduction.ru/www/local/handler.php:20
#7: include_once(string)
	/web/sites/formproduction.ru/www/bitrix/modules/main/include/urlrewrite.php:159
#8: include_once(string)
	/web/sites/formproduction.ru/www/bitrix/urlrewrite.php:2