Atenção
Erro ao acessar o banco de dados
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 t1.FCAD_T_PUBLICO = 'S'' at line 1
select count(*) from djr_favoritos_cadastro t1 INNER JOIN djr_favoritos_x_categoria t2 ON t1.FCAD_N_CODIGO = t2.FCAD_N_CODIGO where t2.FCAT_N_CODIGO = AND t1.FCAD_T_PUBLICO = 'S'