Fix for getTotalEmailsByProductsOrdered()