This works great although rather than showing 3 posts from each category it shows all of them.
Also is there a way to show posts that are in one category but not in another.
Example: post 1 belongs to category 3, 4, & 7, and post 2 belongs to category 3,4. So I only want show posts from category 3 and not 7. So the output would only show post 2.