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 'LIMIT 1' at line 1 [ SELECT `sline_line_extend_field`.`id` AS `id`, `sline_line_extend_field`.`productid` AS `productid` FROM `sline_line_extend_field` AS `sline_line_extend_field` WHERE productid= LIMIT 1 ]

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 [ 251 ] » Kohana_Database_MySQL->query(arguments)

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

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

  4. APPPATH/classes/controller/line.php [ 422 ] » Kohana_ORM->find()

  5. {PHP internal call} » Controller_Line->action_show()

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

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

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

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

Environment