I have a table containing news posts and would like to get the entire last added **newspost** of every category.  

The table contains these columns: 

* id, title, images, description, category, date

Example: I have 20 posts in 3 categories. The last post by date of every category is returned so I get 3 posts back.