Exception

PDOException: SQLSTATE[42000]: Syntax error or access violation: 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 `promotion_offer_tags`.`deleted` = "no" GROUP BY `promotions`.`id` ORDER ' at line 5 in /var/www/www.rioquente.com.br/app/core/includes/ActiveRecord/lib/Connection.php:350

  1. /var/www/www.rioquente.com.br/app/core/includes/ActiveRecord/lib/Table.php (237): query('SELECT `promotions`.`id`, `promotions`.`name`, `promotions`.`price_with_airfare`, `promotions`.`price_with_airfare_old`, `promotions`.`price_old`, `promotions`.`price_discount`, `promotions`.`intro`, `promotions`.`subtitle`, `promotions`.`price`, `promotions`.`dates`, `promotions`.`highlighted`,`promotions`.`start`, `promotions`.`end`, `promotions`.`card_image_id`, `promotions`.`price_with_airfare_description`, `promotions`.`price_description` FROM `promotions` LEFT JOIN `promotion_offer_tags` ON `promotion_offer_tags`.`promotion_id` = `promotions`.`id` LEFT JOIN `promotion_holiday_tags` ON `promotion_holiday_tags`.`promotion_id` = `promotions`.`id` LEFT JOIN `hotels` ON `hotels`.`id` = `promotions`.`hotel_id` INNER JOIN `languages` ON(`languages`.`id` = `promotions`.`language_id`) WHERE `promotions`.`deleted` = 'no' AND `promotions`.`end` >= NOW() AND `promotions`.`published` = 'yes' AND `languages`.`code` = 'pt' AND (`promotions`.`local` = 'VA' OR (`promotions`.`local` = '' OR `promotions`.`local` IS NULL)) AND `promotion_offer_tags`.`tag_id` IN() AND `promotion_offer_tags`.`deleted` = "no" GROUP BY `promotions`.`id` ORDER BY `promotions`.`end` ASC', Array)
  2. /var/www/www.rioquente.com.br/app/core/includes/ActiveRecord/lib/Table.php (219): find_by_sql('SELECT `promotions`.`id`, `promotions`.`name`, `promotions`.`price_with_airfare`, `promotions`.`price_with_airfare_old`, `promotions`.`price_old`, `promotions`.`price_discount`, `promotions`.`intro`, `promotions`.`subtitle`, `promotions`.`price`, `promotions`.`dates`, `promotions`.`highlighted`,`promotions`.`start`, `promotions`.`end`, `promotions`.`card_image_id`, `promotions`.`price_with_airfare_description`, `promotions`.`price_description` FROM `promotions` LEFT JOIN `promotion_offer_tags` ON `promotion_offer_tags`.`promotion_id` = `promotions`.`id` LEFT JOIN `promotion_holiday_tags` ON `promotion_holiday_tags`.`promotion_id` = `promotions`.`id` LEFT JOIN `hotels` ON `hotels`.`id` = `promotions`.`hotel_id` INNER JOIN `languages` ON(`languages`.`id` = `promotions`.`language_id`) WHERE `promotions`.`deleted` = 'no' AND `promotions`.`end` >= NOW() AND `promotions`.`published` = 'yes' AND `languages`.`code` = 'pt' AND (`promotions`.`local` = 'VA' OR (`promotions`.`local` = '' OR `promotions`.`local` IS NULL)) AND `promotion_offer_tags`.`tag_id` IN() AND `promotion_offer_tags`.`deleted` = "no" GROUP BY `promotions`.`id` ORDER BY `promotions`.`end` ASC', Array, false, NULL)
  3. /var/www/www.rioquente.com.br/app/core/includes/ActiveRecord/lib/Model.php (1618): find(Array)
  4. (): find('all', Array)
  5. /var/www/www.rioquente.com.br/app/core/includes/ActiveRecord/lib/Model.php (1446): call_user_func_array('static::find', Array)
  6. /var/www/www.rioquente.com.br/app/controllers/pacotes-promocionais.php (179): all(Array)
  7. /var/www/www.rioquente.com.br/app/core/NeoCMS.php (101): index()
  8. /var/www/www.rioquente.com.br/public/index.php (164): __construct()