Added Distinct
Small query update