Warning: Undefined array key "loginuserid" in /var/www/web10/htdocs/www/login/head.php on line 270

Fatal error: Uncaught mysqli_sql_exception: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '' at line 1 in /var/www/web10/htdocs/www/login/sql/DbSql.inc.php:49 Stack trace: #0 /var/www/web10/htdocs/www/login/sql/DbSql.inc.php(49): mysqli_query() #1 /var/www/web10/htdocs/www/login/sql/class.chatai.php(139): DBSQL->select() #2 /var/www/web10/htdocs/www/login/head.php(270): Chatai->getuserinfobyid() #3 /var/www/web10/htdocs/www/login/usercheck.php(167): include_once('...') #4 /var/www/web10/htdocs/www/login/index.php(10): require_once('...') #5 {main} thrown in /var/www/web10/htdocs/www/login/sql/DbSql.inc.php on line 49