Reproduced by putting in a lot of view_access data and setting SQL_BIG_SELECTS=0 and SQL_MAX_JOIN_SIZE to 100000000 (default on my mysql server is 18446744073709551615).
Reproduced by putting in a lot of view_access data and setting SQL_BIG_SELECTS=0 and SQL_MAX_JOIN_SIZE to 100000000 (default on my mysql server is 184467440737095 51615).