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 type IN ('A','J')' at line 1 [ SELECT `agilityrun`.`id` AS `id`, `agilityrun`.`event_id` AS `event_id`, `agilityrun`.`type` AS `type`, `agilityrun`.`class` AS `class`, `agilityrun`.`size` AS `size`, `agilityrun`.`name` AS `name`, `agilityrun`.`start_time` AS `start_time`, `agilityrun`.`length` AS `length`, `agilityrun`.`standard_time` AS `standard_time`, `agilityrun`.`max_time` AS `max_time`, `agilityrun`.`avg_speed` AS `avg_speed`, `agilityrun`.`created` AS `created`, `agilityrun`.`updated` AS `updated`, `agilityrun`.`deleted` AS `deleted`, `agilityrun`.`user_id` AS `user_id`, `agilityrun`.`judge_name` AS `judge_name`, `agilityrun`.`judge_id` AS `judge_id`, `agilityrun`.`course_id` AS `course_id`, `agilityrun`.`running_now` AS `running_now`, `agilityrun`.`common_startlist` AS `common_startlist`, `agilityrun`.`calculate_sct` AS `calculate_sct`, `agilityrun`.`allowsync` AS `allowsync`, `agilityrun`.`result_filter` AS `result_filter` FROM `agility_runs` AS `agilityrun` WHERE `class` = 'O' AND course_id IN () AND type IN ('A','J') ]

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. MODPATH/orm/classes/Kohana/ORM.php [ 1063 ] » Kohana_Database_Query->execute(arguments)

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

  4. APPPATH/classes/Model/AgilityRun.php [ 4248 ] » Kohana_ORM->find_all()

  5. APPPATH/views/agilityrun/view_resultssumMK_print.php [ 4 ] » Model_AgilityRun::getMKSumResultArray(arguments)

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

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

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

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

  10. APPPATH/views/event/agility/templatePrint.php [ 44 ] » Kohana_View->__toString()

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

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

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

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

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

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

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

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

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

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

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

Environment