add group by to improve performance
Merge branch 'dev' of https://github.com/celements/celements-photo.git into dev