I have the folowwing SQL query
SELECT CustomerID FROM sales WHERE `Date` <= \'2012-01-01\' GROUP BY CustomerID
The query is executed over 11
try this one :
SELECT distinct CustomerID FROM sales WHERE `Date` <= '2012-01-01'