public function groupBy($column) { if ($this->sql['groupBy'] == '') { $this->sql['groupBy'] = "GROUP BY {$column} "; } else { $this->sql['groupBy'] .= ",{$column} "; } return $this; }