Filtering structures that are not under the influence of my structure


HI
I want to select only the structures that are affected by my structure. (Red)
I have tried this code, but it also selects structures that are under the influence of other structures.
Is it possible to do that?
Thank you very much