Additionally the mysql query:
"insert into wp_wfConfig (name, val) values ('cbl_restOfSiteBlocked', '1') ON DUPLICATE KEY UPDATE val='1' "
completes successfully when run directly on the MySQL server.
So it looks like the error message may be a red herring.