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 cliente IN (SELECT codigo FROM ofxx004 WHERE id <> ) ) nm_sel_esp' at line 1
select count(*) from (SELECT id, ofxx004_id, tipo_factura, status, numero, doc_ref, fecha, fecha_vencimiento, periodo_id, cliente, cliente_nombre, ofgl005_codigo, no_opp, po_cliente, moneda_trn, moneda_base, moneda_loc, monto_loc, monto_usd, tasa_cambio, tasa_cambio_ref, iva, metodo_iva, tasa_igtf, monto_iva_loc, monto_iva_usd, igtf_loc, igtf_usd, neto_loc, neto_usd, neto_xcob_loc, neto_xcob_usd, gravable_loc, gravable_usd, exento_loc, exento_usd, descuento_monto_loc, descuento_monto_usd, descuento_tipo, descuento_valor, politica_credito, toprint, no_control, tasa_cambio_factura, ofgl010_id, status_cobro, total_aplicado_loc, total_aplicado_usd, saldo_pendiente_loc, saldo_pendiente_usd, fecha_estimada_cobro, cant_diferidos, forma_envio, observaciones, instrucciones_especiales, ofgl100_id, status_contable, ofcm120_id, userid_creacion, fecha_creacion, userid_modificacion, fecha_ult_modificacion FROM ofcm020 WHERE ofxx004_id = and cliente IN (SELECT codigo FROM ofxx004 WHERE id <> ) ) nm_sel_esp