A table with blog posts that are in one or more categories. Now I want to select 10 posts and having the categories for each of the posts. That means inner joining each post on the post-to-category table etc.
Problem: limit 10 gives only 10 rows (eg one post with 10 categories). I want to have 10 different posts with all categories for each post (eg if each post would have 2 categories it should return 20 rows).