Tablonuzu date yapın,
WHERE DATE_SUB(CURDATE(),INTERVAL 30 DAY) - aylık
gibi bir sorgu işinizi görecektir