$userinfo=$DB_site->query_first("SELECT username FROM user WHERE userid='$userid'");
$userinfo=$DB_site->query("SELECT username FROM user WHERE userid='$userid'");