#1255 getMostViewed macro updated to new data model and updated sql
#1255 getMostViewed macro updated to new data model and updated sql