I am struggling with filtering my custom posts by relationship field. Field returns ID of related post and there could be only one related post. So basically my field looks like that:
 => 319
Let say that I have an array with IDs [317, 319] and I want to query my custom posts and use meta query to find all of the posts that have relationship field value equal to any ID from array above.
I know that relationship field stores values as arrays. So far I end up with this piece of code and I am running out of ideas. I have done some research but I found none of the helpfull.