src/CarteBlanche/Library/StorageEngine/Database.php
public function get_query()
    {
        $query =
            strtoupper($this->query_type)
            .' '.$this->fields
            .' FROM '.$this->from
            .( !empty($this->where) ?
                ' WHERE '.$this->where : '' )
            .( !empty($this->order_by) ?
                ' ORDER BY '.$this->order_by.' '.$this->order_way
                : '' )
            .( !empty($this->limit) ?
                ' LIMIT '.$this->limit
    //				.( !empty($this->offset) ? ','.$this->offset : '' )
                : '' )
            .( !empty($this->offset) ?
                ' OFFSET '.$this->offset
                : '' )
            .';';
        return $query;
    }
public function get_query()
    {
        $query =
            strtoupper($this->query_type)
            .' '.$this->fields
            .' FROM '.$this->from
            .( !empty($this->where) ?
                ' WHERE '.$this->where : '' )
            .( !empty($this->order_by) ?
                ' ORDER BY '.$this->order_by.' '.$this->order_way
                : '' )
            .( !empty($this->limit) ?
                ' LIMIT '.$this->limit
    //				.( !empty($this->offset) ? ','.$this->offset : '' )
                : '' )
            .( !empty($this->offset) ?
                ' OFFSET '.$this->offset
                : '' )
            .';';
        return $query;
    }
Global query construction using the query constructors values

@return string A full query string