Unable to run an update query that references both temporary and permanent database tables. Rewrite your query to only reference ...