I have following query, to fetch the events .
SELECT
*
FROM
events_table
WHERE event_date > DATE_SUB(NOW(), INTERVAL 1 DAY)
ORDER BY event_status ASC,
event_date ASC
All I want to do is return all rows whose event_date is today
Where I m going wrong?
Thanks for help
How about this in your where clause:
And another option that wouldn’t prevent using an index on event_date: