src/SQRT/QueryBuilder/Query/Select.php
public function asStatement()
  {
    return 'SELECT ' . $this->prepareColumns() . ' FROM ' . $this->prepareTable()
      . $this->prepareJoin()
      . $this->prepareWhere(false)
      . $this->prepareGroupBy()
      . $this->prepareHaving(false)
      . $this->prepareOrderBy()
      . $this->prepareLimit();
  }
public function asStatement()
  {
    return 'SELECT ' . $this->prepareColumns() . ' FROM ' . $this->prepareTable()
      . $this->prepareJoin()
      . $this->prepareWhere(false)
      . $this->prepareGroupBy()
      . $this->prepareHaving(false)
      . $this->prepareOrderBy()
      . $this->prepareLimit();
  }
Создать выражение с подстановкой переменных