Saat menggunakan PHP, SQL_BIG_SELECTS =1 harus disetel dalam kueri terpisah sebelum kueri utama Anda. Misalnya:
$mysqli = new mysqli("localhost", "root", "password", "db");
$mysqli->query("SET SQL_BIG_SELECTS=1"); //Set it before your main query
$results = $mysqli->query("SELECT a, b, c FROM test");
while($row = $results->fetch_assoc()){
echo '<pre>';
print_r ($row);
echo '</pre>';
}
';}