How do I get the previous date.
SELECT CURRENT_DATE();
SELECT DATE_SUB(CURRENT_DATE(), INTERVAL 1 DAY)