Calculated Custom Field Not working in V19

I just notice that my instance is now in v19 (which by the way I couldn’t find the setting that made it to automatically upgrade to the latest version, I would like to turn that off so that next time I can pick the time I wish to upgrade and perhaps do a backup first before doing so so that I can easily revert back)

Suddenly all my calculated fields are having some problems


Bad string syntax to evaluate (found call of a function or method without using direct name): ((($reloadedobj = new Product($db)) && ($reloadedobj->fetchNoCompute($objectoffield->fk_product) > 0)) ? $reloadedobj->array_options[‘options_pcsperbag’] : ‘0’)

my exact fomrula is:
((($reloadedobj = new Product($db)) && ($reloadedobj->fetchNoCompute($objectoffield->fk_product) > 0)) ? $reloadedobj->array_options[‘options_pcsperbag’] : ‘0’)

it was working fine before and in fact I have another sandbox which is still in v18 with the same formula and have no problems

Can anyone please help?