'where' => 'date>=' . strtotime("-45 day") . ',
If you meant for it to be a date yyyy-mm-dd type rather than unix time
'where' => 'date>='. date('Y-m-d',strtotime("-45 day")) .',
mysql only version
'where' => 'date>= DATE_SUB(NOW(), INTERVAL 30 DAY)',
---
Peace and Long Life