Prova con questa:
SELECT * FROM (select * from forum order by data_ins desc) f where attiva='si' group by categoria