I'd need to see the full SQL statement and describe what you are trying to achieve vs the result you are seeing to explain anything. Using GROUP will change the number of results. It shouldn't effect weather pagination works, but it would effect how many pages there are.
Maybe pagination isn't showing because there isn't more than one page.