Notice: Undefined index: activity_flag in /www/new.sjsh8.cn/app/controller/activity/activity.php on line 2876Notice: Undefined index: start_time in /www/new.sjsh8.cn/app/controller/activity/activity.php on line 2889Notice: Undefined index: end_time in /www/new.sjsh8.cn/app/controller/activity/activity.php on line 2892Notice: Undefined index: activity_id in /www/new.sjsh8.cn/app/controller/activity/activity.php 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)>=1531929600 and unix_timestamp(o.date_added) <=1532016000 and o.activity_id= and p.order_id=o.order_id and o.order_status_id in(15,5,22,17,18) in /www/new.sjsh8.cn/system/database/mysql.php on line 50