Fix getProductsNotSold query