Warning: PDO::query(): 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 '',
painelpam.nome as 'nome',
painelpam.ledr as 'ledr',
painelp...' at line 2 in /home/miguelde/projeto8.migueldebarba.com.br/pam/testejson.php on line 10
Fatal error: Uncaught Error: Call to a member function fetchAll() on bool in /home/miguelde/projeto8.migueldebarba.com.br/pam/testejson.php:22
Stack trace:
#0 {main}
thrown in /home/miguelde/projeto8.migueldebarba.com.br/pam/testejson.php on line 22