Self-referential HABTM SQL mal-formed when updating record

Guys,

Anyone ever had this kind of problem with ActiveScaffold?

Cheers, Sazima