How to query Filter multiple conditions on multiple columns?

Trying to retrieve data from 2 different columns. One column in child table (many to many relationship) and one column from parent table. Need filter query by these two column values. An example would be great with either "and" operation.

  Discussion posts and replies are publicly visible