Move Deistinct out of select string.
Merge pull request #461 from developer88/master

Fix : Move 'Distinct' out of select string and use .uniq instead