I need select active posts of wordpress with a PHP script that answer date roles.
This is the select that I tried, but it didn't work:
select post_title, post_date from wp_posts
where post_date between 2016-01-25 and 2016-01-01
Before, I tried this:
select post_title, post_date from wp_unp_posts where
Date_sub(curdate(), interval '25' day)
or:
select post_title, post_date from wp_unp_posts where
post_date => curdate() - 25
Nothing return results.
What is the correct construction of this query?