this part is causing the problem, but unfortunately I couldn't fix the error either
Code:
$mysqli->query("UPDATE player_equipment SET boosters = '".json_encode($boosters)."' WHERE userId = ".$player['userId']."");