Move Deistinct out of select string.