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 MariaDB server version for the right syntax to use near '' at line 3' in /var/www/clients/client1/web280/web/src/Database/ProdutoDAO.php:50 Stack trace: #0 /var/www/clients/client1/web280/web/src/Database/ProdutoDAO.php(50): PDO->query('SELECT p.*\n ...') #1 /var/www/clients/client1/web280/web/pages/produto.php(17): Loja\Database\ProdutoDAO->getProdutoPorId(NULL) #2 /var/www/clients/client1/web280/web/index.php(182): include_once('/var/www/client...') #3 {main} thrown in /var/www/clients/client1/web280/web/src/Database/ProdutoDAO.php on line 50