I don`t understand why this needed?

Do you want to do something like that?
```
$c->groupby($this->modx->getSelectColumns('modManagerLog','modManagerLog'));
$c->groupby($this->modx->getSelectColumns('modUser','User','',array('username')));
```