I have the following database with 2 columns:
posts id category id
1 2
2 1
1 3
3 3
3 2
4 5
I need a query that when extracts all post id's that are in category 2 AND 3 which means : posts with id: 1 and 3.