protected function _build_group_by() { if (count($this->_group_by) === 0) { return ''; } return "GROUP BY " . join(", ", $this->_group_by); }