Did you try the workaround without your modification. I thought that the vars are already defined.
I have found the creator of the workaround:
www.limesurvey.org/forum/can-i-do-this-w...-mysql-in-limesurvey?
Perhaps you can get in touch with the creator.
I have found the creator of the workaround:
www.limesurvey.org/forum/can-i-do-this-w...-mysql-in-limesurvey?
Perhaps you can get in touch with the creator.