When I run this code in PHP the values are returned correctly
$result = $mysqli->query("SELECT `id`, `last_key_ID` FROM `customers` WHERE `email` = '{$email}';");
But as soon as I add the INTO-syntax to it, the num_rows returns no value:
$result = $mysqli->query("SELECT `id`, `last_key_ID` INTO @id, @last_key_id FROM `customers` WHERE `email` = '{$email}';");
The echo just one line after SELECT-INTO code prints nothing
echo $result->num_rows;
PS: The same SELECT-INTO code seems to run in MySQL-console perfectly, why doesnt it work in PHP?