[[header]]
[[reklama_top_strony]]

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 '-10' at line 1 [ SELECT DISTINCT(article.id), title, icon, url, event_time, event_place, article.timestamp, lead FROM `article` JOIN `category_article` ON (`article`.`id` = `category_article`.`article`) WHERE `article`.`active` = 2 AND `article`.`draft` = 0 AND `article`.`pub_date` <= 1711664500 AND `category_article`.`category` = 5 ORDER BY `article`.`pub_date` DESC LIMIT 10 OFFSET -10 ]

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 [ 245 ] » Database_MySQLi->query(arguments)

  2. APPPATH/classes/block/q4/articlelist.php [ 59 ] » Kohana_Database_Query->execute()

  3. APPPATH/views/themes/q4/articlelist.php [ 23 ] » Block_Q4_Articlelist->getAll()

  4. MODPATH/septen_theme/classes/septen/block.php [ 40 ] » include(arguments)

  5. MODPATH/septen_theme/classes/septen/theme/compiler.php [ 171 ] » Septen_Block->render()

  6. APPPATH/classes/controller/welcome.php [ 455 ] » Septen_Theme_Compiler->getView()

  7. {PHP internal call} » Controller_Welcome->action_articlelist()

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

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

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

  11. DOCROOT/index.php [ 116 ] » Kohana_Request->execute()

Environment