You gave me real room for thought, cheers mate - igot it working after a few changes....select
count(*) as hits,
page
, page_id
,dayofmonth(datetime) as theday
, month(datetime) as themonth
, year(datetime) as theyear
, news_subject
,news_frontpage
from...