Fatal error: Uncaught ActiveRecord\DatabaseException: 42000, 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 'AND tipo_arquivo_id = 2 ORDER BY ordenacao_arquivo desc' at line 1 in C:\inetpub\vhosts\hcb.org.br\congresso.hcb.org.br\sys\phpac\lib\Connection.php:313
Stack trace:
#0 C:\inetpub\vhosts\hcb.org.br\congresso.hcb.org.br\sys\phpac\lib\Table.php(224): ActiveRecord\Connection->query()
#1 C:\inetpub\vhosts\hcb.org.br\congresso.hcb.org.br\sys\phpac\lib\Table.php(215): ActiveRecord\Table->find_by_sql()
#2 C:\inetpub\vhosts\hcb.org.br\congresso.hcb.org.br\sys\phpac\lib\Model.php(1574): ActiveRecord\Table->find()
#3 [internal function]: ActiveRecord\Model::find()
#4 C:\inetpub\vhosts\hcb.org.br\congresso.hcb.org.br\sys\phpac\lib\Model.php(1402): call_user_func_array()
#5 C:\inetpub\vhosts\hcb.org.br\congresso.hcb.org.br\conteudo\detalhe-conteudo.php(63): ActiveRecord\Model::all()
#6 {main}
thrown in
C:\inetpub\vhosts\hcb.org.br\congresso.hcb.org.br\sys\phpac\lib\Connection.php on line
313