Kohana_Exception [ 42000 ]: SQLSTATE[42000]: Syntax error or access violation: 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 5 [ select s.LoginId,s.Name,s.BaiduMapPointLng as x,s.BaiduMapPointLat as y, a.Domain,s.ShortName,s.HxDisplayName,s.isshowseat, s.Workphone,s.WorkphoneShow, s.Addr,s.GroupId,s.TagId, s.LogoImageId, s.OnlineCallCode, a.AreaName as City, s.AreaId,s.isshowseat,s.baiducredit,s.otherinfo from t_school as s left join T_Area as a on a.Id=s.AreaId where 1 And s.LoginId= ]

APPPATH/library/Database/PDO.php [ 146 ]

141 			$result = $this->_connection->query($sql);
142 		}
143 		catch (Exception $e)
144 		{
145 			// Convert the exception in a database exception
146 			throw new Kohana_Exception(':error [ :query ]',
147 				array(
148 					':error' => $e->getMessage(),
149 					':query' => $sql
150 				),
151 				$e->getCode());
  1. APPPATH/models/Ditu.php [ 84 ] » Database_PDO->query(arguments)

  2. APPPATH/models/Teacherdetail.php [ 58 ] » DituModel->getSchoolInfo()

  3. APPPATH/controllers/Laoshi.php [ 105 ] » TeacherdetailModel->getData()

  4. {PHP internal call} » LaoshiController->detailAction()

  5. SYSPATH/index.php [ 8 ] » Yaf_Application->run()

Environment