• you need to change that bit of code to be dynamic sql - that way you can check for the existence of the column and only execute it if available