His confusion has been confused here.
One he came with is pretty clear and I explained it to him already. He was doing something like this
$result = $mysqli->query("query"); $mysqli->query("SELECT * FROM table WHERE result = $result");
While his “cryptic” messages belong to allegedly not working prepared statements, but the OP seems not willing to participate in this latter topic.