Atención
Se produjo un error al acceder a la base de datos.
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'and (tipo_factura = 'F' or tipo_factura = 'N' or tipo_factura = 'D' or tipo_fact' at line 1
select count(*), sum(saldo_pendiente_loc), sum(saldo_pendiente_usd),cliente_nombre from ofcm020 where ((saldo_pendiente_loc <> 0 or saldo_pendiente_usd <> 0) and ofxx004_id = and (tipo_factura = 'F' or tipo_factura = 'N' or tipo_factura = 'D' or tipo_factura = 'H') and status = 'I') group by cliente_nombre order by cliente_nombre