Notice: Undefined offset: 0 in /var/www/html/product.php on line 211

Fatal error: Uncaught exception 'Exception' with message 'DB:Query fail<br>ERROR42000You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'and `pb_type` = 3 ORDER BY `pb_ind` ASC' at line 5Query:select pb_pic, pb_pic_ck from product_banner WHERE (`pb_ispublic`=1 or `pb_ispublic`=4 ) and `pb_pd_id` = and `pb_type` = 3 ORDER BY `pb_ind` ASC' in /var/www/html/inc/_database.class.php:405 Stack trace: #0 /var/www/html/inc/_database.class.php(109): Database->oops('Query fail') #1 /var/www/html/inc/_database.class.php(183): Database->query('select pb_pic, ...') #2 /var/www/html/inc/class/class_product_data.php(465): Database->fetch_all_array('select pb_pic, ...') #3 /var/www/html/product.php(211): class_product_data::getPDbanner(NULL) #4 {main} thrown in /var/www/html/inc/_database.class.php on line 405