public function serialyse() {
        
        $this->query = $this->queryPrefix;
        
        foreach ($this->criteriaList->getStoredQueries() as $query) {
            $this->setNextSeparator(false);
            $this->parseQuery($query);
            
        }
        
        $this->finishQuery();
        return $this->query;
    }