Notice: Undefined variable: pageid in D:\xampp\htdocs\nicvd\footer.php on line 242

Fatal error: Uncaught PDOException: SQLSTATE[42000]: Syntax error or access violation: 1064 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 'IN (PageId)' at line 1 in D:\xampp\htdocs\nicvd\footer.php:242 Stack trace: #0 D:\xampp\htdocs\nicvd\footer.php(242): PDO->query('SELECT * from b...') #1 D:\xampp\htdocs\nicvd\faculty.php(143): include('D:\\xampp\\htdocs...') #2 {main} thrown in D:\xampp\htdocs\nicvd\footer.php on line 242