added GROUP BY FUNC(DISTINCT) functionality