Cita:
Iniciado por bels_mike
a ver xD todas las noticias tienen uns ID y los comentarios tambien tiene su propia id pero tambien tiene noticiaid que es la noticia a la que se refieren
Me he inventado los nombres de algunos campos y de las tablas, pero adáptalo a tus tablas y campos, y pruébalo. No lo he probado
SELECT n.noticia, COUNT(c.noticiaid) AS TOTALCOMENTARIOS FROM tablanoticias n INNER JOIN tablacomentarios c
ON c.noticiaid = n.id GROUP BY c.noticiaid ORDER BY TOTALCOMENTARIOS DESC