Fetch the context ids to be updated first before performing the update to the contextlist_context table to avoid using subquery that causes cross DB compatibility issues.