Warning (512): SQL 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 'AND `I18n__name`.`locale` = 'en' AND NOT (`I18n__name`.`content` = '')   ORDER B' at line 1 [CORE/cake/libs/model/datasources/dbo_source.php, line 514]

Query: SELECT `Category`.`slug`, `Category`.`image`, `Category`.`banner`, `I18n__name`.`content`, `Category`.`id` FROM `categories` AS `Category` LEFT JOIN `i18n` AS `I18n__name` ON (`Category`.`id` = `I18n__name`.`foreign_key` AND `I18n__name`.`model` = 'Category' AND `I18n__name`.`field` = 'name' AND `I18n__name`.`locale` = 'en') WHERE `Category`.`published`=1 AND `Category`.`parent_id`= AND `I18n__name`.`locale` = 'en' AND NOT (`I18n__name`.`content` = '') ORDER BY `Category`.`lft` ASC

::[ | DODONI S.A. ]::

Warning (2): Missing argument 1 for ElementsController::featured(), called in /home/dodonieu/public_html/cake/libs/object.php on line 115 and defined [APP/controllers/elements_controller.php, line 112]
Notice (8): Undefined variable: category_id [APP/controllers/elements_controller.php, line 114]
Notice (8): Undefined variable: category_id [APP/controllers/elements_controller.php, line 116]
Warning (512): SQL 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 ') AND `I18n__name`.`locale` = 'en' AND NOT (`I18n__name`.`content` = '')   ORDER' at line 1 [CORE/cake/libs/model/datasources/dbo_source.php, line 514]

Query: SELECT `Product`.`retail`, `Product`.`bulk`, `Product`.`reduction`, `Product`.`slug`, `Product`.`image`, `Category`.`slug`, `I18n__name`.`content`, `Product`.`id` FROM `products` AS `Product` LEFT JOIN `i18n` AS `I18n__name` ON (`Product`.`id` = `I18n__name`.`foreign_key` AND `I18n__name`.`model` = 'Product' AND `I18n__name`.`field` = 'name' AND `I18n__name`.`locale` = 'en') LEFT JOIN `categories` AS `Category` ON (`Product`.`categories_id` = `Category`.`id`) LEFT JOIN `customer_groups` AS `CustomerGroup` ON (`Product`.`customer_groups_id` = `CustomerGroup`.`id`) WHERE `Product`.`published`=1 AND `Product`.`featured`=1 AND `Product`.`categories_id` IN (217,218,223,220,221,219,222,) AND `I18n__name`.`locale` = 'en' AND NOT (`I18n__name`.`content` = '') ORDER BY `Product`.`id` ASC LIMIT 3