我正在从管理员>导出畅销产品报告;报告>产品>畅销书。 它的工作量很少。 如果我添加更多天,则会出现以下错误
任何人都可以为此解决问题吗?是出口限制问题还是畅销书报告问题?
a:5:{i:0;s:748:"SQLSTATE[23000]: Integrity constraint violation: 1052 Column 'period' in field list is ambiguous, query was: SELECT COUNT(*) FROM (SELECT MAX(DATE_FORMAT(period, '%Y-%m-%d')) AS
period
, SUM(qty_ordered) AS qty_ordered
, sales_bestsellers_aggregated_daily_2
.product_id
, MAX(product_name) AS product_name
, MAX(product_price) AS product_price
, MAX(DATE_FORMAT(period, '%Y-%m-%d')) AS period
, SUM(qty_ordered) AS qty_ordered
, sales_bestsellers_aggregated_daily
.product_id
, MAX(product_name) AS product_name
, MAX(product_price) AS product_price
FROM sales_bestsellers_aggregated_daily
AS sales_bestsellers_aggregated_daily_2
REF: Ambiguous column "period" when exporting a bestsellers report