Database_Exception [ 1064 ]: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near ') ORDER BY `count_all` DESC LIMIT 40' at line 1 [ SELECT `product`.`id` AS `id`, `product`.`ordering` AS `ordering`, `product`.`alias_cat` AS `alias_cat`, `product`.`alias` AS `alias`, `product`.`cat_brend` AS `cat_brend`, `product`.`meta_title` AS `meta_title`, `product`.`meta_description` AS `meta_description`, `product`.`title` AS `title`, `product`.`short_description` AS `short_description`, `product`.`description` AS `description`, `product`.`price` AS `price`, `product`.`price_old` AS `price_old`, `product`.`price_min` AS `price_min`, `product`.`price_zakup` AS `price_zakup`, `product`.`count_all` AS `count_all`, `product`.`count_min` AS `count_min`, `product`.`hits` AS `hits`, `product`.`mark_id` AS `mark_id`, `product`.`type_attribute` AS `type_attribute`, `product`.`image_file` AS `image_file`, `product`.`publish` AS `publish`, `product`.`not_available` AS `not_available`, `product`.`always_available` AS `always_available`, `product`.`plus_1` AS `plus_1`, `product`.`plus_2` AS `plus_2`, `product`.`plus_3` AS `plus_3`, `product`.`plus_4` AS `plus_4`, `product`.`plus_5` AS `plus_5`, `product`.`video_1` AS `video_1`, `product`.`video_2` AS `video_2`, `product`.`views_count` AS `views_count`, `product`.`type` AS `type`, `product`.`type_steklo` AS `type_steklo`, `product`.`filters` AS `filters`, `product`.`sublimation` AS `sublimation`, `product`.`images_cache` AS `images_cache`, `product`.`cat_ids` AS `cat_ids`, `product`.`suppliers_codes` AS `suppliers_codes`, `product`.`price_before` AS `price_before`, `product`.`price_old_before` AS `price_old_before`, `product`.`date_create` AS `date_create`, `product`.`id_template` AS `id_template`, `product`.`id_st_template` AS `id_st_template`, `product`.`id_itsell` AS `id_itsell`, `product`.`itsell_vendor` AS `itsell_vendor`, `product`.`itsell_url` AS `itsell_url`, `product`.`recount` AS `recount`, `product`.`img_perenos` AS `img_perenos` FROM `products` AS `product` WHERE `id` IN () ORDER BY `count_all` DESC LIMIT 40 ]

MODPATH/mysqli/classes/Database/MySQLi.php [ 174 ]

169 {170 // This benchmark is worthless171 Profiler::delete($benchmark);172 }173 174 throw new Database_Exception(':error [ :query ]',175 array(':error' => mysqli_error($this->_connection), ':query' => $sql),176 mysqli_errno($this->_connection));177 }178 179 if (isset($benchmark))
  1. MODPATH/database/classes/Kohana/Database/Query.php [ 251 ]»Database_MySQLi->query(arguments)

  2. MODPATH/orm/classes/Kohana/ORM.php [ 1063 ]»Kohana_Database_Query->execute(arguments)

  3. MODPATH/orm/classes/Kohana/ORM.php [ 1004 ]»Kohana_ORM->_load_result(arguments)

  4. APPPATH/classes/Controller/Index/Category.php [ 669 ]»Kohana_ORM->find_all()

  5. APPPATH/classes/Controller/Index/Category.php [ 39 ]»Controller_Index_Category->brend_page_filter(arguments)

  6. SYSPATH/classes/Kohana/Controller.php [ 84 ]»Controller_Index_Category->action_index()

  7. {PHP internal call}»Kohana_Controller->execute()

  8. SYSPATH/classes/Kohana/Request/Client/Internal.php [ 97 ]»ReflectionMethod->invoke(arguments)

  9. SYSPATH/classes/Kohana/Request/Client.php [ 114 ]»Kohana_Request_Client_Internal->execute_request(arguments)

  10. SYSPATH/classes/Kohana/Request.php [ 986 ]»Kohana_Request_Client->execute(arguments)

  11. DOCROOT/index.php [ 118 ]»Kohana_Request->execute()

Environment