My script that I\'ve altered from the answer here is making duplicate columns in only SOME of the tables. I can\'t figure out what the problem is. The purpose of the script