NotificationHistoryQuery: Add missing field to group statement

refs #5896