src/SQRT/QueryBuilder/Query/Select.php
public function asSQL()
  {
    $q = 'SELECT ' . $this->prepareColumns() . ' FROM ' . $this->prepareTable()
      . $this->prepareJoin()
      . $this->prepareWhere()
      . $this->prepareGroupBy()
      . $this->prepareHaving()
      . $this->prepareOrderBy()
      . $this->prepareLimit();

    return $this->processBindedVarsToSQL($q);
  }
public function asSQL()
  {
    $q = 'SELECT ' . $this->prepareColumns() . ' FROM ' . $this->prepareTable()
      . $this->prepareJoin()
      . $this->prepareWhere()
      . $this->prepareGroupBy()
      . $this->prepareHaving()
      . $this->prepareOrderBy()
      . $this->prepareLimit();

    return $this->processBindedVarsToSQL($q);
  }
Создать SQL