Using Distinct In Sql With Statement