This query works
SELECT id, username, password
FROM users
WHERE (email = ?)
LIMIT 1"
$stmt->bind_param('s', $email);
$stmt->execute();
$stmt->store_result();
This does not
SELECT id, username, password
FROM users
WHERE (email = ? || username = ?)
LIMIT 1"
Need to log in using both email as well as username having trouble in login in using only email