I tried to display the last inserted record according to category group from news table
I am using this query
select * from
(select * from news order by id desc) as t
group by news_category;
This query working well in localhost which display the last inserted record from news table (order by id desc) according to category group.
But the same query is not working in online server.