Notice: Undefined index: activity_flag in /www/ on line 2876Notice: Undefined index: start_time in /www/ on line 2889Notice: Undefined index: end_time in /www/ on line 2892Notice: Undefined index: activity_id in /www/ on line 2895Notice: Error: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'and p.order_id=o.order_id and o.order_status_id in(15,5,22,17,18)' at line 1
Error No: 1064
SELECT SUM(p.quantity) AS quantity from sj_order_product p,sj_order o where unix_timestamp(o.date_added)>=1578153600 and unix_timestamp(o.date_added) <=1578240000 and o.activity_id= and p.order_id=o.order_id and o.order_status_id in(15,5,22,17,18) in /www/ on line 50ҳ