SELECT * FROM `invoice` WHERE status='pendingsettlement' and created_at<='2021-02-26 23:59:59'