Error i.view: SQLSTATE[HY000]: General errorError u.view: SQLSTATE[HY000]: General error Erro 404 - Prefeitura Municipal de Pinheiral

Fatal error: Uncaught exception 'PDOException' with message 'SQLSTATE[42601]: Syntax error: 7 ERROR: syntax error at end of input LINE 4: WHERE codentidade = 27 AND codmenu = ^' in /home/pinheiral/public_html/class/bd.php:43 Stack trace: #0 /home/pinheiral/public_html/class/bd.php(43): PDO->query('SELECT\n ...') #1 /home/pinheiral/public_html/functions/breadcrumbs.php(10): DataBase->select(Object(PDO), '\n SELECT...') #2 /home/pinheiral/public_html/breadcrumb.php(3): breadcrumbs(NULL, Object(DataBase), Object(PDO)) #3 /home/pinheiral/public_html/index.php(314): include('/home/pinheiral...') #4 {main} thrown in /home/pinheiral/public_html/class/bd.php on line 43