I have a table that relates reflections to categories to which it belongs.
idReflexion | idCategoria
---------------------------------
1 | 2
1 | 3
1 | 5
2 | 3
2 | 5
3 | 2
3 | 3
I want you to show me all those reflections that are in categories a, b, c ... n
For example, if I ask you to show me the reflections that belong to categories 3 and 5, you should show me the 1 and 2. If I want to show me those that belong to categories 2 and 3, you should show me the 1 and the 3.
I have been using INNER JOIN in a thousand and one ways, but nothing ... I always get an error.