foreign key should be on a seperate line
	foreign key(key) references ...

changed order back to orderr didn't realize order was an operation