SELECT `client` FROM `trm_out_receipt_header` WHERE DATE >= NOW() - INTERVAL 1 DAY GROUP BY 1 HAVING COUNT(*) > 4;
SELECT `client` FROM `trm_out_receipt_header` WHERE DATE >= DATE_ADD(CURDATE(), INTERVAL -1 DAY) GROUP BY 1 HAVING COUNT(*) > 4;