Having different variables with names that differ only in case is rather bad form.
If you're not using the values of the id or real_name fields there's not a lot of point in selecting them. That leaves the username and password fields and you already know the value of the username field, so you don't need that either. (Any particular reason why you're using PHP to compare passwords instead of doing it in the database? Or why you're not hashing the password?)
You could avoid starting a lot of irrelevant sessions by waiting to session_start() until you know you're going to be using it, i.e., until after you've validated the login. Speaking of which,
$loginResults['username'] = $userName && $loginResults['password'] = $passWord
Don't you mean
$loginResults['username'] == $userName && $loginResults['password'] == $passWord
$_POST['uid'] = "Spacebar Computers (NW)";
$_POST['pwd'] = "Spacebar Computers (NW)";
Are these intended to achieve anything?
And the big security problem: you never check the value of $username (sorry, $userName) before embedding it in the query. Bad, bad, bad, very very bad.