ERROR CL: select iva_gen from ec_config where idreg=1