Select id, count(*) as somma from tabella group by id order by somma limit 1, 5

Metti "as somma" dopo il SUM.