A
Size: a a a
A
ЕО
A
comments
where stat=1 group by item_id
order by id
desc limit 20 A
A
A
E
comments
where stat=1 group by item_id
order by id
desc limit 20 select * from (
select max(id) as max_id, item_id from comments group by item_id
) as t1
left join comments t2 ON t2.id = t1.max_id AND t2.item_id = t1.item_id
GK
comments
where stat=1 group by item_id
order by id
desc limit 20 A
A
A
A
A