Warning: Undefined array key "uid" in /var/www/html/idvr/user_info.php on line 25

Fatal error: Uncaught mysqli_sql_exception: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'AND `valid` = 1' at line 1 in /var/www/html/idvr/SQLDatabase.php:50 Stack trace: #0 /var/www/html/idvr/SQLDatabase.php(50): mysqli_query(Object(mysqli), 'SELECT `host`, ...') #1 /var/www/html/idvr/user_info.php(27): SQLDatabase->Query('SELECT `host`, ...') #2 {main} thrown in /var/www/html/idvr/SQLDatabase.php on line 50