I need a way to only return UNIQUIE rows from MySQL, but only for one column. For example, with this table I want only records that have a UNIQUIE name:
id|name|animal
1|Jack|fish
2|Mark|dog
3|Mark|duck
4|John|cat
5|Mark|bear
6|Jack|bird
The records that should be returned would be: 1, 2, 4. I can't make the name column UNIQUIE in the database since its all possbile for them to be in there more then once, but i want a list of all the names there are without duplicates.