Database_Exception [ 1525 ]: Incorrect DATE value: '-01-01' [ SELECT `users`.`username`, IF(newstype_id =9,1,0) as wichtig, `news`.`id` AS `id`, `news`.`headline` AS `headline`, `news`.`shorttext` AS `shorttext`, `news`.`largetext` AS `largetext`, `news`.`date` AS `date`, `news`.`image` AS `image`, `news`.`newstype_id` AS `newstype_id`, `news`.`users_id` AS `users_id` FROM `news` AS `news` LEFT JOIN `users` ON (`users`.`id` = `users_id`) WHERE (`news`.`date` >= '-01-01' AND `date` < '-12-31') ORDER BY `wichtig` DESC, `date` DESC, `news`.`id` DESC LIMIT 2000 ]

MODPATH/database/classes/Kohana/Database/MySQLi.php [ 171 ]

166 			{
167 				// This benchmark is worthless
168 				Profiler::delete($benchmark);
169 			}
170 
171 			throw new Database_Exception(':error [ :query ]', [
172 				':error' => $this->_connection->error,
173 				':query' => $sql
174 			], $this->_connection->errno);
175 		}
176 
  1. MODPATH/database/classes/Kohana/Database/Query.php [ 251 ] » Kohana_Database_MySQLi->query(arguments)

  2. MODPATH/orm/classes/Kohana/ORM.php [ 1212 ] » Kohana_Database_Query->execute(arguments)

  3. MODPATH/orm/classes/Kohana/ORM.php [ 1153 ] » Kohana_ORM->_load_result(arguments)

  4. APPPATH/classes/Controller/News.php [ 37 ] » Kohana_ORM->find_all()

  5. SYSPATH/classes/Kohana/Controller.php [ 84 ] » Controller_News->action_archiv()

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

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

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

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

  10. DOCROOT/index.php [ 124 ] » Kohana_Request->execute()

Environment