Why does COUNT() return multiple rows when I just need the total count of how many rows my query generates?
Should return 1078.
Do not use group by, it will count the number of each group.