u forgot to close the statement

$warnlevel = $DB_site->query_first("SELECT $warnifield FROM userfield WHERE userid='$variable1223');
=
$warnlevel = $DB_site->query_first("SELECT $warnifield FROM userfield WHERE userid='$variable1223'");
Anyways... I finally got rid of that error.. so thanks for all ur help i really appreciate it... now i get this errror instead
Fatal error: Call to a member function on a non-object in /home/fiendwor/public_html/forum/admin/functions.php on line 215
215:
$warnlevel = $DB_site->query_first("SELECT $warnifield FROM userfield WHERE userid='$uservar'");
$uservar is instead of variable1223... so i did change it dont worry