Couldn't get list of questions in createFieldMap function.

You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'groups WHERE questions.gid=groups.gid AND questions.sid=3 ORDER BY group_name, t' at line 1