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') and status = 'I') order by client' at line 1
SELECT numero, moneda_trn, fecha_vencimiento, id, ofxx004_id, tipo_factura, ofgl100_id, status, fecha, cliente_nombre, saldo_pendiente_loc, saldo_pendiente_usd from ofcm020 where ((saldo_pendiente_loc > 0 or saldo_pendiente_usd > 0) and ofxx004_id = and (tipo_factura = 'F' or tipo_factura = 'N') and status = 'I') order by cliente_nombre asc, fecha_vencimiento asc, id asc