public function getSql()
    {
        $where = (count($this->conditions) === 0)
            ? ''
            : 'WHERE ' . implode(' and ', $this->conditions);
        $sql = "SELECT $this->select FROM $this->table $where $this->order $this->limit $this->offset";
        return $sql;
    }
public function getSql()
    {
        $where = (count($this->conditions) === 0)
            ? ''
            : 'WHERE ' . implode(' and ', $this->conditions);
        $sql = "SELECT $this->select FROM $this->table $where $this->order $this->limit $this->offset";
        return $sql;
    }
public function getSql ( ) { $ where = ( count ( $ this -> conditions ) === 0 ) ? '' : 'WHERE ' . implode ( ' and ' , $ this -> conditions ) ; $ sql = "SELECT $this->select FROM $this->table $where $this->order $this->limit $this->offset" ; return $ sql ; }
Returns generated SQL.

@return string
Returns generated SQL .