[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 'ORDER BY `support`.`UF_SUPPORT_DATEEND` ASC' at line 16 (400)
SELECT 
	`support`.`ID` AS `ID`,
	`support`.`UF_SUPPORT_PARTNER` AS `UF_SUPPORT_PARTNER`,
	`support`.`UF_SUPPORT_INN` AS `UF_SUPPORT_INN`,
	`support`.`UF_SUPPORT_KPP` AS `UF_SUPPORT_KPP`,
	`support`.`UF_SUPPORT_NAMECLIEN` AS `UF_SUPPORT_NAMECLIEN`,
	`support`.`UF_SUPPORT_PRODUCTID` AS `UF_SUPPORT_PRODUCTID`,
	`support`.`UF_SUPPORT_REGNUM` AS `UF_SUPPORT_REGNUM`,
	`support`.`UF_SUPPORT_PRODNAME` AS `UF_SUPPORT_PRODNAME`,
	`support`.`UF_SUPPORT_VERSION` AS `UF_SUPPORT_VERSION`,
	`support`.`UF_SUPPORT_DATEEND` AS `UF_SUPPORT_DATEEND`
FROM `support` `support` 

WHERE (`support`.`UF_SUPPORT_PARTNER` IS NULL OR `support`.`UF_SUPPORT_PARTNER` = '')
AND `support`.`UF_SUPPORT_DATEEND` <
ORDER BY `support`.`UF_SUPPORT_DATEEND` ASC
/var/www/osa/bitrix/modules/main/lib/db/mysqliconnection.php:137
#0: Bitrix\Main\DB\MysqliConnection->queryInternal(string, array, NULL)
	/var/www/osa/bitrix/modules/main/lib/db/connection.php:329
#1: Bitrix\Main\DB\Connection->query(string)
	/var/www/osa/bitrix/modules/main/lib/entity/query.php:1908
#2: Bitrix\Main\Entity\Query->query(string)
	/var/www/osa/bitrix/modules/main/lib/entity/query.php:489
#3: Bitrix\Main\Entity\Query->exec()
	/var/www/osa/bitrix/modules/main/lib/entity/datamanager.php:255
#4: Bitrix\Main\Entity\DataManager::getList(array)
	/var/www/osa/private/partners/2-tab/filter_date.php:79