Ok, hours of SO digging, still I haven found a solution for a - IMO rather obvious - task. I have posts
and I want to query up to 5 comments
per post (the newest maybe).
So basically something like this:
SELECT p.id, p.title, c.id, c.text
FROM posts p
LEFT JOIN comments c ON p.id = c.postId LIMIT 5
(Pseudo, does not work)
How to LIMIT a JOIN?