protected function query($sql) {
		$this->sqlCnt++;
		$res = $this->db->query($sql);
		if (!$res) {
			$this->dbError = $this->db->error;
		}
		return $res;
	}
protected function query($sql) {
		$this->sqlCnt++;
		$res = $this->db->query($sql);
		if (!$res) {
			$this->dbError = $this->db->error;
		}
		return $res;
	}
protected function query ( $ sql ) { $ this -> sqlCnt ++ ; $ res = $ this -> db -> query ( $ sql ) ; if ( ! $ res ) { $ this -> dbError = $ this -> db -> error ; } return $ res ; }
Perform sql query and return result.
Increase sqlCnt and save error if occured

@param  string  $sql  query
@return misc
@author Dmitry (dio) Levashov
Perform sql query and return result . Increase sqlCnt and save error if occured