Funziona?

SELECT *,avg(nome) FROM ristoranti GROUP BY inserzione ORDER BY inserzione DESC, nome ASC LIMIT $start,$step