Update TagRepository.php

The column name was missing in the group by.