This SQL addition is needed for the widgets to filter by queue ID's properly.