Notice: Undefined offset: 0 in E:\broadmesse\detailPage.php on line 59

Fatal error: Uncaught exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 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 '' at line 1' in E:\broadmesse\DataBase.php:171 Stack trace: #0 E:\broadmesse\DataBase.php(171): PDO->prepare('select * from b...') #1 E:\broadmesse\detailPage.php(60): Mysql->_doQuery('select * from b...') #2 E:\broadmesse\detailData.php(2): include_once('E:\\broadmesse\\d...') #3 {main} thrown in E:\broadmesse\DataBase.php on line 171