Using Distinct In Sql With Multiple Where