$result = mysqli_query($con, "SELECT * FROM queue_stats
WHERE qevent = 11 AND 'datetime' < NOW() LIMIT 20");
I have a table column called 'datetime' with date format(YYYY-MM-DD H:M:S) And I want to get 20 query results with dates before now, i.e. the time the query was made. How can I make the 'datetime' < NOW() produce the required result. When I use this mysql statement, I always get a blank page with no result. Please help.