keke_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 id,name from wan_witkey_district where id= ]

/disk/html/lib/db/mysql_driver.php[ 188 ]

183 	}
184 	public function getErrno() {
185 		return ($this->_link) ? mysql_errno ( $this->_link ) : mysql_errno ();
186 	}
187 	public function halt($message = '', $sql = '') {
188 		throw new keke_exception ( ':error [ :query ]', array ('msg'=>$message,':error' => mysql_error ( $this->_link ), ':query' => $sql ), mysql_errno ( $this->_link ) );
189 		exit ();
190 	}
191 	public function special_filed(&$value) {
192 		if ('*' == $value || false !== strpos ( $value, '(' ) || false !== strpos ( $value, '.' ) || false !== strpos ( $value, '`' )) {
193 		} else {
  1. /disk/html/index.php [ 210 ] » require ( arguments )

  2. /disk/html/control/index.php [ 41 ] » db_factory::get_one ( arguments )

  3. /disk/html/lib/db/db_factory.php [ 139 ] » keke_db->get_one ( arguments )

  4. /disk/html/lib/db/db_factory.php [ 78 ] » mysql_drver->get_one_row ( arguments )

  5. /disk/html/lib/db/mysql_driver.php [ 72 ] » mysql_drver->execute_sql ( arguments )

  6. /disk/html/lib/db/mysql_driver.php [ 154 ] » mysql_drver->halt ( arguments )

Environment