Users Table
id activated
--- ------------
1 1
2 1
3 0
4 1
5 1
6 1
Follow table
follower_id following_id
------------ --------------
1 2
2 1
4 2
5 1
3 2
5 2
6 1
3 4
6 2
3 1
4 1
Blocking table
blocking_id blocked_id
------------ --------------
2 4
Let's say I am the user with the id of 2
Expected Result
user_id mutual_followers
------------- -----------------
1 2
5 0
6 0
I want to get the mutual followers of users and exclude blocking or blocked and users whose activated is 0.
How can I get it done all the way by MySQL?