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 `docs`.`doc_id` AS `doc_id`, `docs`.`doc_dmt_id` AS `doc_dmt_id`, `docs`.`doc_dst_id` AS `doc_dst_id`, `docs`.`doc_name` AS `doc_name`, `docs`.`doc_order` AS `doc_order` FROM `documents` AS `docs` WHERE `docs`.`doc_dmt_id` = '4' ORDER BY `doc_dmt_id`, `doc_dst_id`, `doc_order` DESC 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/Council.php [ 75 ] » ORM->getForPage(arguments)

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

  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