$user = $DB_site->query_first("SELECT username FROM user WHERE userid = ".intval($userid[1]));
Show Your Support
$user = $DB_site->query_first("SELECT username FROM user WHERE userid = '".intval($userid[1])."'");
global $DB_site;