Fix Bug: use DISTINCT to remove select's duplicate