Different Results than Using SQL DISTINCT: Example of SELECT