private function buildQuery()
    {
        $select = $this->buildSelect();

        $from = $this->buildFrom();

        $within = $this->buildWithin();

        $wheres = $this->buildWheres();

        $query = sprintf('%s %s %s %s', $select, $from, $within, $wheres);

        return trim($query);
    }
private function buildQuery()
    {
        $select = $this->buildSelect();

        $from = $this->buildFrom();

        $within = $this->buildWithin();

        $wheres = $this->buildWheres();

        $query = sprintf('%s %s %s %s', $select, $from, $within, $wheres);

        return trim($query);
    }
private function buildQuery ( ) { $ select = $ this -> buildSelect ( ) ; $ from = $ this -> buildFrom ( ) ; $ within = $ this -> buildWithin ( ) ; $ wheres = $ this -> buildWheres ( ) ; $ query = sprintf ( '%s %s %s %s' , $ select , $ from , $ within , $ wheres ) ; return trim ( $ query ) ; }
Builds the query and returns the query string.

@return string
Builds the query and returns the query string .