Ver original$stmt = $mysqli->prepare("query");if (!$stmt) { thow new RuntimeException($mysqli->error);} $stmt->bind_param('i', $var);// etc