What I'm basically trying to do is get the top 3 most frequent values from a column in my database, I have searched for a solution but couldn't find anything. I already have the code to get the most frequently used;

```
 $mostFrequentUser = $db->query("SELECT emailFrom FROM details group by emailFROM having count(*) = (SELECT count (*) FROM details group by emailFrom ORDER BY count(*) desc LIMIT 1)");
 $frequent = $mostFrequentUser->fetchColumn();

```

It's so I can order them from 1 - 3 of who uses the system the most and display it on a webpage, any help would be great! Thanks