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 '-3' at line 1 [ SELECT `product_backgrounds`.* FROM `product_backgrounds` WHERE `product_backgrounds`.`product_id` = '3' ORDER BY `product_backgrounds`.`ord` ASC LIMIT -3 ]

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

174 			{
175 				// This benchmark is worthless
176 				Profiler::delete($benchmark);
177 			}
178 
179 			throw new Database_Exception(':error [ :query ]',
180 				array(':error' => mysql_error($this->_connection), ':query' => $sql),
181 				mysql_errno($this->_connection));
182 		}
183 
184 		if (isset($benchmark))
  1. MODPATH/database/classes/kohana/database/query.php [ 207 ] » Kohana_Database_MySQL->query(arguments)

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

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

  4. APPPATH/classes/model/product.php [ 844 ] » Kohana_ORM->find_all()

  5. APPPATH/views/products/options/_template_selections.php [ 8 ] » Model_Product->get_starting_month_backgrounds()

  6. SYSPATH/classes/kohana/view.php [ 61 ] » include(arguments)

  7. SYSPATH/classes/kohana/view.php [ 343 ] » Kohana_View::capture(arguments)

  8. SYSPATH/classes/kohana/view.php [ 228 ] » Kohana_View->render()

  9. {PHP internal call} » Kohana_View->__toString()

  10. APPPATH/views/products/options_new.php [ 67 ] » trim(arguments)