sql fix for 'tickets from selected queues setting'