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 `popularity` DESC LIMIT 10' at line 1 [ SELECT `good`.`id` AS `id`, `good`.`name` AS `name`, `good`.`group_name` AS `group_name`, `good`.`translit` AS `translit`, `good`.`section_id` AS `section_id`, `good`.`brand_id` AS `brand_id`, `good`.`group_id` AS `group_id`, `good`.`country_id` AS `country_id`, `good`.`active` AS `active`, `good`.`order` AS `order`, `good`.`image` AS `image`, `good`.`move` AS `move`, `good`.`code` AS `code`, `good`.`code1c` AS `code1c`, `good`.`id1c` AS `id1c`, `good`.`price` AS `price`, `good`.`price_lk` AS `price_lk`, `good`.`price_buy` AS `price_buy`, `good`.`price_sale` AS `price_sale`, `good`.`price_ts` AS `price_ts`, `good`.`price_sale_from` AS `price_sale_from`, `good`.`price_sale_to` AS `price_sale_to`, `good`.`nds` AS `nds`, `good`.`pack` AS `pack`, `good`.`per_pack` AS `per_pack`, `good`.`rating` AS `rating`, `good`.`review_qty` AS `review_qty`, `good`.`qty` AS `qty`, `good`.`popularity` AS `popularity`, `good`.`upc` AS `upc`, `good`.`old_price` AS `old_price`, `good`.`barcode` AS `barcode`, `good`.`big` AS `big`, `good`.`promo_id` AS `promo_id`, `good`.`show` AS `show`, `good`.`new` AS `new`, `good`.`zombie` AS `zombie`, `good`.`wiki_cat_id` AS `wiki_cat_id`, `good`.`ozon_type_id` AS `ozon_type_id`, `good`.`google_cat_id` AS `google_cat_id`, `good`.`seo_auto` AS `seo_auto`, `good`.`cpa_model` AS `cpa_model`, `good`.`age_from` AS `age_from`, `good`.`age_to` AS `age_to`, `good`.`delivery_days` AS `delivery_days`, `good`.`margin_rate` AS `margin_rate`, `good`.`has_offer` AS `has_offer` FROM `z_good` AS `good` WHERE `id` IN () ORDER BY `popularity` DESC LIMIT 10 ]

MODPATH/database/classes/kohana/database/mysql.php [ 194 ]

189 			{
190 				// This benchmark is worthless
191 				Profiler::delete($benchmark);
192 			}
193 
194 			throw new Database_Exception(':error [ :query ]',
195 				array(':error' => mysql_error($this->_connection), ':query' => $sql),
196 				mysql_errno($this->_connection));
197 		}
198 
199 		if (isset($benchmark))
  1. MODPATH/database/classes/kohana/database/query.php [ 245 ] » Kohana_Database_MySQL->query(arguments)

  2. MODPATH/orm/classes/kohana/orm.php [ 993 ] » Kohana_Database_Query->execute(arguments)

  3. MODPATH/orm/classes/kohana/orm.php [ 934 ] » Kohana_ORM->_load_result(arguments)

  4. APPPATH/classes/controller/section.php [ 507 ] » Kohana_ORM->find_all()

  5. {PHP internal call} » Controller_Section->action_pampers()

  6. SYSPATH/classes/kohana/request/client/internal.php [ 116 ] » ReflectionMethod->invoke(arguments)

  7. SYSPATH/classes/kohana/request/client.php [ 64 ] » Kohana_Request_Client_Internal->execute_request(arguments)

  8. SYSPATH/classes/kohana/request.php [ 1154 ] » Kohana_Request_Client->execute(arguments)

  9. DOCROOT/index.php [ 10 ] » Kohana_Request->execute()

Environment