Notice: Undefined variable: ad_itemAdtype in /home/bitrix/ext_www/navigato.ru/php/class/.class.Ad.php on line 709

Warning: Missing argument 2 for Ad::adOptionsList(), called in /home/bitrix/ext_www/navigato.ru/php/class/.class.Ad.php on line 710 and defined in /home/bitrix/ext_www/navigato.ru/php/class/.class.Ad.php on line 591

Notice: Undefined variable: adSubcategory in /home/bitrix/ext_www/navigato.ru/php/class/.class.Ad.php on line 629

mysql error:
SELECT `adInputValue`.`value` AS adInputValue, `adInput`.`title` AS adInput, `adSubcategory2adInput`.`pos` FROM `adInputValue` INNER JOIN `adInput` ON `adInputValue`.`adInput` = `adInput`.`id` INNER JOIN `adSubcategory2adInput` ON `adSubcategory2adInput`.`adInput` = `adInput`.`id` WHERE `adInputValue`.`ad` = 25965 AND `adSubcategory2adInput`.`adSubcategory` = GROUP BY `adInputValue`.`id`

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 `adInputValue`.`id`' at line 13