add group_by function in get_total_results function

the total result is not the same with the result rows when use group_by, so I added the group_by function and return $q->num_rows() instead of $this->ci->db->count_all_results($this->table)
Merge pull request #25 from vachzar/patch-1

add group_by function in get_total_results function