Nested/Sub Query Not Working with Group Function