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;
    }