forgot to add distinct on tags query