Improved the select order Id query to look at quantity.