function ResetQuery($query = null) {
		$this->db->ar_select = array();
		$this->db->ar_distinct = FALSE;
		$this->db->ar_from = array();
		$this->db->ar_join = array();
		$this->db->ar_where = array();
		$this->db->ar_like = array();
		$this->db->ar_groupby = array();
		$this->db->ar_having = array();
		$this->db->ar_keys = array();
		$this->db->ar_limit = FALSE;
		$this->db->ar_offset = FALSE;
		$this->db->ar_order = FALSE;
		$this->db->ar_orderby = array();
		$this->db->ar_set = array();
		$this->db->ar_wherein = array();
		$this->db->ar_aliased_tables = array();
		$this->db->ar_store_array = array();

		$this->joystError = '';
		$this->continue = TRUE;
		$this->query = $query;
	}