Query Group by e max
Ogni tanto ci si trova ad avere a che fare con una query che necessita di Group by e di max
1 select tab2.* from 2 (select max(poster_time) as poster_time from groupbymax 3 group by id_topic) as tab1 4 left join groupbymax as tab2 ON tab1.poster_time = tab2.poster_time 5 order by tab1.poster_time desc 6 limit 3

Osservare il Query Rewriting