select * from tabella where data > curdate() - interval 30 day