Warning: Undefined array key "IDNO" in /home/netsafc2/public_html/environmenthealth.com.ng/profile.php on line 11

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 'LIMIT 1' at line 1 in /home/netsafc2/public_html/environmenthealth.com.ng/includes/database.php:34 Stack trace: #0 /home/netsafc2/public_html/environmenthealth.com.ng/includes/database.php(34): mysqli_query(Object(mysqli), 'SELECT * FROM t...') #1 /home/netsafc2/public_html/environmenthealth.com.ng/includes/database.php(64): Database->executeQuery() #2 /home/netsafc2/public_html/environmenthealth.com.ng/includes/student.php(21): Database->loadSingleResult() #3 /home/netsafc2/public_html/environmenthealth.com.ng/profile.php(11): Student->single_student(NULL) #4 /home/netsafc2/public_html/environmenthealth.com.ng/theme/templates.php(91): require_once('/home/netsafc2/...') #5 /home/netsafc2/public_html/environmenthealth.com.ng/index.php(38): require_once('/home/netsafc2/...') #6 {main} thrown in /home/netsafc2/public_html/environmenthealth.com.ng/includes/database.php on line 34