[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 'GROUP BY id_programm' at line 1 (400) SELECT id_programm FROM `schedule` WHERE (init_date >= CURDATE() - INTERVAL 1 DAY OR init_date > CURDATE() + INTERVAL 6 DAY) AND id_location= GROUP BY id_programm /home/c/cv61646/operatmn.ru/public_html/bitrix/modules/main/lib/db/mysqliconnection.php:146 #0: Bitrix\Main\DB\MysqliConnection->queryInternal(string, array, NULL) /home/c/cv61646/operatmn.ru/public_html/bitrix/modules/main/lib/db/connection.php:327 #1: Bitrix\Main\DB\Connection->query(string) /home/c/cv61646/operatmn.ru/public_html/local/components/location/location.index/component.php:13 #2: include(string) /home/c/cv61646/operatmn.ru/public_html/bitrix/modules/main/classes/general/component.php:605 #3: CBitrixComponent->__includeComponent() /home/c/cv61646/operatmn.ru/public_html/bitrix/modules/main/classes/general/component.php:682 #4: CBitrixComponent->includeComponent(string, array, NULL, boolean) /home/c/cv61646/operatmn.ru/public_html/bitrix/modules/main/classes/general/main.php:1068 #5: CAllMain->IncludeComponent(string, string, array) /home/c/cv61646/fitness/public_html/location/index.php:10 #6: include_once(string) /home/c/cv61646/operatmn.ru/public_html/bitrix/modules/main/include/urlrewrite.php:160 #7: include_once(string) /home/c/cv61646/operatmn.ru/public_html/bitrix/urlrewrite.php:2