为什么PDO不能在这里获取?:$userInfo = $user->fetch();
//User Data
$user = $dbh->prepare('SELECT * FROM users JOIN levels ON users.level = levels.level WHERE users.id = :id and users.login = :login LIMIT 1');
$userID = $_SESSION['userID'];
$loginName = $_SESSION['loginName'];
$user->execute(array(':id' => $userID, ':login' => $loginName));
$userInfo = $user->fetch();
$lvlPerc = ($userInfo['users.xp'] / $userInfo['levels.xp']) * 100;
//Check if banned or !Authorized
if ($userInfo['status'] != "2") {
session_destroy();
unset ($_SESSION['userID']);
unset ($_SESSION['userLogin']);
header ("Location: /login");
exit();
}