This question already has an answer here:
I have a simple many to many relationship with news and category.When I try to make a query to select all posts from a category, something went wrong and nothing appears.
Query:
DB Schema:
Loop through result:
</div>