Fix the edge case, group by primary key with several pass through columns