We have a Most Popular section on our site that displays the most viewed entries and there respective view counts. We have gotten it to display counts, but some are rising at numbers that exorbitant, other are lower than the actual view count, while some incidentally match the actual view counts.
Here is our code, any ideas as to what we need to correct?
Thanks!
{exp:channel:entries limit="5"}
<a href="http://{comment_url_title_auto_path}">_{exp:trunchtml chars="29" inline=" ..."}{title}{/exp:trunchtml}_</a>
{/exp:channel:entries}
{exp:query
sql="select entry_id, view_count_one as cnt, url_title, title
from exp_channel_titles
where view_count_one > 0
order by view_count_one desc limit 5"
}Views:{cnt}
{/exp:query}