Falha na consulta: 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 t.cod_titulo_cifra = c.cod_titulo_cifra AND (t....' at line 11