PHP mysqli fetches rows that do not match the query

I am trying to fetch some rows with php mysqli based on what the type column is, however the results do not match the query.

My current code is this:

$stmt = $conn->prepare("SELECT * FROM additional_info WHERE type = ?");
$stmt->bind_param("i", $order["type"]);
$stmt->execute();
$result = $stmt->get_result();
$additional_info = $result->fetch_all(MYSQLI_ASSOC);

If I try to fetch with a type that is not in the rows, instead of returning an empty array or null it is returning all the rows. Am I missing something?