I keep getting the following error:
[21-Apr-2020 21:26:33 UTC] PHP Fatal error: Uncaught Error: Call to a member function bind_param() on boolean in
Here is the code I have in PHP
$stmt = $mysqli->prepare('SELECT id, name FROM accounts AS acc INNER JOIN inventory AS inv ON acc.id=inv.id INNER JOIN itemdefinition AS def ON def.id=inv.id WHERE acc.name=?');
$stmt->bind_param("s", $name);
if($stmt->execute() === TRUE) {
echo 'Correct select statement.';
} else {
echo 'Something wrong with the select statement';
}