Erro não tratado:

Capturado porSQLException
Tipo Exception
MensagemSQLSTATE[42601]: Syntax error: 7 ERROR: syntax error at end of input LINHA 1: ...co, termos, grafo_base, capa FROM public.tema WHERE id_tema= ^
Arquivo/home/storage/a/6d/a1/revisaoonline1/core/model/io/BDHelper.class.php
Linha177
Pilha
#0 /home/storage/a/6d/a1/revisaoonline1/core/model/io/BDHelper.class.php(214): BDHelper->query('SELECT id_tema ...')
#1 /home/storage/a/6d/a1/revisaoonline1/core/model/AbstractModel.class.php(123): BDHelper->queryTable('public.tema', 'id_tema as prin...', 'id_tema=', NULL, NULL, NULL)
#2 /home/storage/a/6d/a1/revisaoonline1/core/model/AbstractDAO.class.php(166): AbstractModel->queryTable('public.tema', 'id_tema as prin...', 'id_tema=')
#3 /home/storage/a/6d/a1/revisaoonline1/core/model/DTOTrait.class.php(354): AbstractDAO->getByID(false)
#4 /home/storage/a/6d/a1/revisaoonline1/app/control/ControladorPublic.class.php(82): Tema::getOne(false)
#5 /home/storage/a/6d/a1/revisaoonline1/core/Factory.class.php(76): ControladorPublic->tema('www.onuverde.or...')
#6 /home/storage/a/6d/a1/revisaoonline1/core/Factory.class.php(41): Factory->geraAcao()
#7 /home/storage/a/6d/a1/revisaoonline1/public_html/index.php(13): Factory->start()
#8 {main}
SQL
SELECT id_tema as principal, titulo_tema, tema, id_instituicao, ano, mes, publico, termos, grafo_base, capa FROM public.tema WHERE id_tema=