query('SET SESSION SQL_BIG_SELECTS=1;'); $bigSelects = true; } } }