Thanks! I didn't know about the problem with using :: inside quotes. Shouldn't you have the same problem in with the join statement?
Anyway after making this change the script runs find even using warnings. However, I'm still getting the exact same error with MT. So it still doesn't like what I'm sending it. :(