Ver originalSELECT id_revista, count(*) as numModelosFROM escribeGROUP BY id_revista;
Ver originalSELECT r.fecha, Sbc.numModelosFROM revista INNER JOIN (SELECT e.id_revista, count(*) as numModelos FROM escribe as e GROUP BY e.id_revista) as Sbc ON r.id_revista=Sbc.id_revistaORDER BY Sbc.numModelos DESC;