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 '-5' at line 1 [ SELECT `companies`.`co_id` AS `co_id`, `companies`.`co_name` AS `co_name`, `companies`.`co_desc` AS `co_desc`, `companies`.`co_email` AS `co_email`, `companies`.`co_phone` AS `co_phone`, `companies`.`co_address` AS `co_address`, `companies`.`co_mobil` AS `co_mobil`, `companies`.`co_web` AS `co_web`, `companies`.`co_slug` AS `co_slug`, `companies`.`co_order` AS `co_order` FROM `companies` AS `companies` ORDER BY `co_name` LIMIT 5 OFFSET -5 ]

MODPATH/var/www/vhosts/lukacshaza.hu/httpdocs/core/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/var/www/vhosts/lukacshaza.hu/httpdocs/core/database/classes/Kohana/Database/Query.php [ 251 ] » Kohana_Database_MySQL->query(arguments)

  2. MODPATH/var/www/vhosts/lukacshaza.hu/httpdocs/core/orm/classes/Kohana/ORM.php [ 1060 ] » Kohana_Database_Query->execute(arguments)

  3. MODPATH/var/www/vhosts/lukacshaza.hu/httpdocs/core/orm/classes/Kohana/ORM.php [ 1001 ] » Kohana_ORM->_load_result(arguments)

  4. MODPATH/var/www/vhosts/lukacshaza.hu/httpdocs/core/orm/classes/ORM.php [ 376 ] » Kohana_ORM->find_all()

  5. MODPATH/var/www/vhosts/lukacshaza.hu/httpdocs/core/orm/classes/ORM.php [ 906 ] » ORM->find_all(arguments)

  6. APPPATH/classes/Controller/Company.php [ 26 ] » ORM->getForPage(arguments)

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

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

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

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

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

  12. MODPATH/var/www/vhosts/lukacshaza.hu/httpdocs/frontend/index.php [ 124 ] » Kohana_Request->execute()

Environment