What is wrong with this SQL? It seems like it should work, but it is not.
utc_time is a datetime field.
SELECT id FROM `foo` WHERE utc_time > now() AND utc_time <= DATE_ADD(curdate(),INTERVAL 24 day);
The explanation says the Where clause is not possible.
utc_time is a datetime type. Here is an example utc_time value: 2011-06-21 00:45:00
source share