SQL DISTINCT Query: How to Select First Unique Record in Database