$ 0 0 My table name was long enough that putting spaces in caused it to hit the character limit. For simplicity I removed the if stmt and just directly assigned. Still get the error.