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 '' at line 1 [ SELECT `participant_id`, `user_id`, `field_id`, `value` FROM `applications` WHERE `is_hidden` <> 1 AND `contest_id` = ]

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. APPPATH/classes/Model/Contest.php [ 189 ] » Kohana_Database_Query->execute()

  3. APPPATH/classes/Controller/Contests.php [ 34 ] » Model_Contest->participant_list(arguments)

  4. SYSPATH/classes/Kohana/Controller.php [ 69 ] » Controller_Contests->before()

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

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

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

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

  9. DOCROOT/index.php [ 131 ] » Kohana_Request->execute()

Environment