WHERE BETWEEN '2011-01-03' AND '2011-01-01'
potrzebuje nazwy kolumny do porównania. Czy to date
? kolumna?
Twoje zapytanie powinno wyglądać tak:
SELECT *
FROM `stats`
WHERE `date` BETWEEN '2011-01-01' AND '2011-01-03'
AND `email`='[email protected]'
AND `city`='New York'
AND `location`='New York'
GROUP BY action