SyntaxFix
Write A Post
Hire A Developer
Questions
You simply select dates that are higher than the current time minus 1 day.
SELECT * FROM news WHERE date >= now() - INTERVAL 1 DAY;