Emulate a group by to only return one param of each type.