I have a mail table that looks like this:
CREATE TABLE `mail` (
  `id` int(20) NOT NULL auto_increment,
  `userto` varchar(30) collate utf8_unicode_ci NOT NULL,
  `userfrom` varchar(30) collate utf8_unicode_ci NOT NULL,
  `message` longtext collate utf8_unicode_ci NOT NULL,
  `seen` int(1) NOT NULL,
  PRIMARY KEY  (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
I want to do something like this:
SELECT userfrom FROM mail
WHERE userto = "admin"
however, I don't want any repeats in the output. How would I do this?
 
     
     
     
    