dogresult.com
beta v0.9.7.10

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 'and e2.id != entries.id and e2.run_id is null and entries.name = e2.name ) AND `' at line 1 [ SELECT `entries`.`name`, dogs.name AS `dn`, `dogs`.`call_name`, `entries`.`class`, `entries`.`size`, `dog_id` FROM `entries` JOIN `dogs` ON (`dogs`.`id` = `entries`.`dog_id`) WHERE entries.run_id IS NULL AND exists (select 1 from daily_applications d where d.entry_id = entries.id and d.day =1 and d.application = 1) AND exists (select 1 from entries e2,daily_applications d2 where d2.entry_id = e2.id and d2.day =1 and d2.application = 1 and e2.event_id = and e2.id != entries.id and e2.run_id is null and entries.name = e2.name ) AND `event_id` IS NULL ORDER BY `entries`.`name` ASC ]

MODPATH/database/classes/Database/MySQLi.php [ 172 ]

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

  2. APPPATH/views/event/agility/showParticipantStats.php [ 170 ] » Kohana_Database_Query->execute()

  3. SYSPATH/classes/Kohana/View.php [ 62 ] » include(arguments)

  4. MODPATH/mustache/classes/View.php [ 36 ] » Kohana_View::capture(arguments)

  5. SYSPATH/classes/Kohana/View.php [ 359 ] » View::capture(arguments)

  6. SYSPATH/classes/Kohana/View.php [ 236 ] » Kohana_View->render()

  7. APPPATH/views/resulttemplate.php [ 239 ] » Kohana_View->__toString()

  8. SYSPATH/classes/Kohana/View.php [ 62 ] » include(arguments)

  9. MODPATH/mustache/classes/View.php [ 36 ] » Kohana_View::capture(arguments)

  10. SYSPATH/classes/Kohana/View.php [ 359 ] » View::capture(arguments)

  11. SYSPATH/classes/Kohana/Controller/Template.php [ 44 ] » Kohana_View->render()

  12. APPPATH/classes/Controller/Website.php [ 109 ] » Kohana_Controller_Template->after()

  13. SYSPATH/classes/Kohana/Controller.php [ 87 ] » Controller_Website->after()

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

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

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

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

  18. DOCROOT/index.php [ 125 ] » Kohana_Request->execute()

Environment