protected function rawQuery($query)
	{
		$start = microtime(TRUE);
		$res   = mysqli_query($this->conn, $query);
		$timer = microtime(TRUE) - $start;

		$this->stats[] = array(
			'query' => $query,
			'start' => $start,
			'timer' => $timer,
		);
		if (!$res)
		{
			$error = mysqli_error($this->conn);
			
			end($this->stats);
			$key = key($this->stats);
			$this->stats[$key]['error'] = $error;
			$this->cutStats();
			
			$this->error("$error. Full query: [$query]");
		}
		$this->cutStats();
		return $res;
	}
protected function rawQuery($query)
	{
		$start = microtime(TRUE);
		$res   = mysqli_query($this->conn, $query);
		$timer = microtime(TRUE) - $start;

		$this->stats[] = array(
			'query' => $query,
			'start' => $start,
			'timer' => $timer,
		);
		if (!$res)
		{
			$error = mysqli_error($this->conn);
			
			end($this->stats);
			$key = key($this->stats);
			$this->stats[$key]['error'] = $error;
			$this->cutStats();
			
			$this->error("$error. Full query: [$query]");
		}
		$this->cutStats();
		return $res;
	}
protected function rawQuery ( $ query ) { $ start = microtime ( TRUE ) ; $ res = mysqli_query ( $ this -> conn , $ query ) ; $ timer = microtime ( TRUE ) - $ start ; $ this -> stats [ ] = array ( 'query' => $ query , 'start' => $ start , 'timer' => $ timer , ) ; if ( ! $ res ) { $ error = mysqli_error ( $ this -> conn ) ; end ( $ this -> stats ) ; $ key = key ( $ this -> stats ) ; $ this -> stats [ $ key ] [ 'error' ] = $ error ; $ this -> cutStats ( ) ; $ this -> error ( "$error. Full query: [$query]" ) ; } $ this -> cutStats ( ) ; return $ res ; }
protected function which actually runs a query against Mysql server.
also logs some stats like profiling info and error message

@param string $query - a regular SQL query
@return mysqli result resource or FALSE on error
protected function which actually runs a query against Mysql server . also logs some stats like profiling info and error message