Database_Exception [ 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 '150' at line 1 [ SELECT `productsneeds`.`id` AS `id`, `productsneeds`.`product_id` AS `product_id`, `productsneeds`.`need_id` AS `need_id` FROM `products_needs` AS `productsneeds` WHERE `need_id` IN 150 ]

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

169             {
170                 // This benchmark is worthless
171                 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 [ 1065 ] » Kohana_Database_Query->execute(arguments)

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

  4. APPPATH/classes/Model/Products.php [ 99 ] » Kohana_ORM->find_all()

  5. APPPATH/classes/Controller/Filter.php [ 38 ] » Model_Products::getFiltered(arguments)

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

  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. APPPATH/classes/Controller/Decode.php [ 16 ] » Kohana_Request->execute()

  12. SYSPATH/classes/Kohana/Controller.php [ 84 ] » Controller_Decode->action_section()

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

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

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

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

  17. DOCROOT/index.php [ 160 ] » Kohana_Request->execute()

Environment