add_filter > posts_where works partially

This doesn’t look like it would produce meaningful SQL, keys cannot hold different values at the same time (that’s why JOINs are usually required in complex queries).

Also using $_GET global in queries is horribly insecure, if you have this anywhere near live site you should remove it immediately.

You earlier question used WP_Query, if it did work at all (even if slowly) you should start with studying SQL it produced and optimize from that point.