my query:
SELECT events.*, SUM(analyt_event_hits.ajax_hits) AS ajax_hits
FROM events
LEFT JOIN analyt_event_hits
ON events.event_id = analyt_event_hits.event_id
WHERE events.date >= '$d'
the problem:
this is only returning one result, when it should be returning many.
The query works fine if i remove SUM(anal_event_hits.ajax_hits) AS ajax_hits
I'm a bit of a MySQL novice so hopefully i'm missing something obvious!