civicrm/civicrm-core — pull request #319 by yashodha (2013-04-03 20:22:04+00:00)
Title: CRM-12266

fixed the missing query bit