Fatal error: Uncaught exception 'ActiveRecord\DatabaseException' with message '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 = 17 ORDER BY ordenacao_arquivo desc' at line 1' in C:\inetpub\vhosts\hcb.org.br\httpdocs\sys\phpac\lib\Connection.php:313
Stack trace:
#0 C:\inetpub\vhosts\hcb.org.br\httpdocs\sys\phpac\lib\Table.php(224): ActiveRecord\Connection->query('SELECT * FROM `...', Array)
#1 C:\inetpub\vhosts\hcb.org.br\httpdocs\sys\phpac\lib\Table.php(215): ActiveRecord\Table->find_by_sql('SELECT * FROM `...', Array, false, NULL)
#2 C:\inetpub\vhosts\hcb.org.br\httpdocs\sys\phpac\lib\Model.php(1574): ActiveRecord\Table->find(Array)
#3 [internal function]: ActiveRecord\Model::find('all', Array)
#4 C:\inetpub\vhosts\hcb.org.br\httpdocs\sys\phpac\lib\Model.php(1402): call_user_func_array('static::find', Array)
#5 C:\inetpub\vhosts\hcb.org.br\httpdocs\transparencia\relatorios\detalhe\index.php(36): Acti in
C:\inetpub\vhosts\hcb.org.br\httpdocs\sys\phpac\lib\Connection.php on line
313