We are wondering if you could tell us why this isn't working. We have a Query Drop Down (Single Select) field called cb_class. Within its Query Parameter, we have:
Code:
SELECT DISTINCT `cb_class` FROM `wbedu_comprofiler` WHERE `cb_school` = '[cb:userdata field="cb_school" user="#displayed" /]'
Nothing shows in the dropdown. But if query changed to:
Code:
SELECT DISTINCT `cb_class` FROM `wbedu_comprofiler` WHERE `cb_school` = 'Demo School'
or
Code:
SELECT DISTINCT `cb_class` FROM `wbedu_comprofiler` WHERE `cb_school` = '[cb:userdata field="cb_school" user="#me" /]'
It works fine. If [cb:userdata field="cb_school" user="#displayed" /] is put anywhere else, it displays Demo School. So we are not sure why the first query isn't working?