$res = mysql_query("SELECT MAX(viewed) AS m,q FROM sb_stories_qa GROUP BY id ORDER BY m DESC")
$viewed=mysql_fetch_array($res);
As you can see I can choose the Max and Min very easy but what I want is to choose the Max, next lower than max and second lower to max for
the top 3 pages viewed