mysql select all before 1 hour code example
Example: mysql 1 hour ago
DELETE FROM wp_posts
WHERE post_date < DATE_SUB(NOW(), INTERVAL 1 HOUR)
AND post_status = 'publish'
DELETE FROM wp_posts
WHERE post_date < DATE_SUB(NOW(), INTERVAL 1 HOUR)
AND post_status = 'publish'