Inner join overrides Advanced Custom Fields plugin’s get_field [closed]

Don’t forget that when you are adding a filter it will stay there for all subsequent request.

I would suggest you remove the closure and do something like this:

function x_example( $input ) {
  remove_filter( 'posts_where', 'x_example' );
  return $input;
}

add_filter( 'posts_where', 'x_example' );

You will have to do the same thing for the posts_join filter.

Update

As pointed by @bonger you could also keep the closure using the following method:

$closure = function( $input ) use ( &$closure ) {
   remove_filter( 'posts_where', $closure );
   return $input;
};

add_filter( 'posts_where', $closure );