code: public function asSQL()
    {
      $q = 'DELETE FROM ' . $this->prepareTable()
        . $this->prepareWhere()
        . $this->prepareOrderBy()
        . $this->prepareLimit();
  
      return $this->processBindedVarsToSQL($q);
    }
docs: Создать SQL