I've created a table named - 'clients' which has Many to Many Relationship with another table named - 'categories'.
I've 4 tables with their columns below :-
'users' - id, category_id
'categories' - id, name
'categories_users' - id, user_id, category_id (Many to Many)
'requests' - id, category_id
I want to grab those requests which has same categories as of users categories which are saved in the 'categories_client'.