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 'order by sale_num desc limit 0,6' at line 1 [ SELECT * FROM `keke_witkey_service` where uid= order by sale_num desc limit 0,6 ]

/home/wwwroot/diy/lib/db/mysql_driver.php[ 187 ]

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

  2. /home/wwwroot/diy/control/seller.php [ 21 ] » db_factory::query ( arguments )

  3. /home/wwwroot/diy/lib/db/db_factory.php [ 111 ] » keke_db->query ( arguments )

  4. /home/wwwroot/diy/lib/db/db_factory.php [ 81 ] » mysql_drver->query ( arguments )

  5. /home/wwwroot/diy/lib/db/mysql_driver.php [ 33 ] » mysql_drver->execute_sql ( arguments )

  6. /home/wwwroot/diy/lib/db/mysql_driver.php [ 153 ] » mysql_drver->halt ( arguments )

Environment