SELECT
g.group_product_id,
g.group_product_name,
(
SELECT
SUM(bill_sale_detail_price * bill_sale_detail_qty)
FROM tb_bill_sale_detail
LEFT JOIN tb_bill_sale
ON tb_bill_sale.bill_sale_id = tb_bill_sale_detail.bill_id
LEFT JOIN tb_product
ON tb_product.product_code = tb_bill_sale_detail.bill_sale_detail_barcode
WHERE tb_bill_sale.bill_sale_created_date BETWEEN '{$date_start}' AND '{$date_end}'
AND tb_product.group_product_id = g.group_product_id
) AS money
FROM
tb_group_product g
มัน error แบบนี้ครับ SQLSTATE[HY000]: General error: 1267 Illegal mix of collations (utf8_unicode_ci,IMPLICIT) and (utf8_general_ci,IMPLICIT) for operation '='. The SQL statement executed was: