Query for total items per users. Production version