Strange error, possibly coming from ActiveRecord

I didn't get much help from stackoverflow people, hence trying heavy
artillery here.

http://stackoverflow.com/questions/2424446/strange-error-coming-from-activerecord-probably

P.S.
In case posting links from other forums (as opposed to reposting the
question) is considered a bad style, I'm more than happy to do that
(given a hint).