Isolate first comma-delimited field of each line in "file", discard consecutive duplicates, and search "file" for first matching occurrence of that field.
cut -d, -f1 file | uniq | xargs -I{} grep -m 1 "{}" file