เรียบร้อยแล้ว ตามคำแนะนำคุณ Chaidhanan ใส่ Where ก่อน group by ค่ะ Code (PHP)
$sql="SELECT DISTINCT tb_repair.repair_no AS summary, Sum(tb_repair.repair_total) AS total,
tb_customer.cust_fname,
tb_staff.employee_name,
tb_repair.repair_status,
Max(tb_repair.repair_date) AS repair_date
FROM tb_repair
INNER JOIN tb_customer ON tb_repair.customer_id = tb_customer.customer_id
INNER JOIN tb_staff ON tb_repair.employee_id = tb_staff.employee_id
WHERE repair_status='ซ่อมเสร็จแล้ว'
GROUP BY
tb_repair.repair_no,
tb_customer.cust_fname,
tb_staff.employee_name,
tb_repair.repair_status
order by repair_date desc";