I want to get the latest posts from the posts table AND I want the correct topic row from another table. But I only want to get 1 latest post for every topic, and not all posts in that topic, how to do that?
[posts]
ID
topicID
name
content
timestamp
[topics]
ID
categoryID
sticky
deleted
highlighted
posts.topicID = topics.ID
So I want to get ONE latest posts per topicID where category = 4 ORDER BY timestamp DESC