SELECT SUM(invoice_total) AS invoicetotal FROM `p_orders` WHERE `plain_date`=\'2020-12-23\' AND `o_status`=\'Delivered\' GROUP BY `order_no`
What I\