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 'Самара' Тольятти ' AND AdministrativeAreaName<>'' GROUP BY `Ad...' at line 1 [ SELECT AdministrativeAreaName FROM 2_gruzoperevozki WHERE `LocalityName`='Посёлок Новосемейкино 'Самара' Тольятти ' AND AdministrativeAreaName<>'' GROUP BY `AdministrativeAreaName` ]

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 ]', array(
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/Modelroute.php [ 184 ] » Kohana_Database_Query->execute()

  3. APPPATH/classes/Controller/Localityroute.php [ 88 ] » Model_modelroute->BigLocalityNameInRegionCity(arguments)

  4. SYSPATH/classes/Kohana/Controller.php [ 84 ] » Controller_Localityroute->action_index()

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

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

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

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

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

Environment