Despite using;
$mysqli = new mysqli("localhost", "user", "pass", "db");
$mysqli->query('SET SQL_BIG_SELECTS = 1');
$mysqli->query('SET MAX_JOIN_SIZE = 999');
$the_query = new WP_Query( $args );
I'm receiving;
[23-Apr-2018 14:37:31 UTC] WordPress database error The SELECT would examine more than MAX_JOIN_SIZE rows; check your WHERE and use SET SQL_BIG_SELECTS=1 or SET MAX_JOIN_SIZE=# if the SELECT is okay for query... WP_Query->__construct, WP_Query->query, WP_Query->get_posts
The original query works, but stopped once I added another meta query that exceeded the cap despite that additional meta query working when I comment out another.
How can I get the $mysqli query settings to apply to $the_query?