Spécifiez explicitement les parties temporelles : WHERE datepaid BETWEEN '2010-04-01 00:00:00' AND '2010-04-15 23:59:59'