次のようなクエリがあります。
SELECT
*,
GROUP_CONCAT(DISTINCT web_order_item.od_pcode) AS items,
GROUP_CONCAT(DISTINCT woi_id) AS woi_ids
FROM web_order
JOIN web_order_item USING(od_id)
JOIN customer_master ON customer_master.VC_CUSTOMER_CODE = web_order.p_vendor
LEFT JOIN production_item ON production_item.ItemID IN (GROUP_CONCAT(DISTINCT woi_id)) AND QCStatus <> 'received'
WHERE
web_order.od_date >= FROM_UNIXTIME(1357257600)
AND web_order.od_date <= FROM_UNIXTIME(1359936000)
AND web_order.od_id > 0
AND 1
GROUP BY web_order.od_id
ORDER BY web_order.od_id DESC
このクエリはエラーをスローします
一般エラー: 1111 グループ機能の無効な使用
ここで何が欠けていますか?ありがとう