Guess the PHP tag screwed it a bit... :/
Code:
$allusers= $DB_site->query("SELECT user.username, session.location, session.lastactivity, user.userid, user.invisible, session.host, user.showemail, user.receivepm
should be:
Code:
$allusers= $DB_site->query("SELECT user.username, session.location, session.lastactivity, user.userid, user.invisible, session.host, user.showemail, user.receivepm,user.usergroupid