Anyone having problems in 1.3.x?
Getting this error
Code:
1064 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 zo.date_purchased > DATE_ADD(CURRENT_DATE(), INTERVAL -365 DAY) GROUP BY w' at line 9
in:
[SELECT COUNT(*) as total_orders, SUM(op.products_quantity) AS total_units, CONCAT('[ ', opa.products_options, ': ', opa.products_options_values,' ]') AS products_options_values_pair, SUBSTRING(opa.products_options_values, 1, 999) AS width FROM orders_products_attributes opa INNER JOIN orders_products op USING(orders_products_id) INNER JOIN orders zo ON zo.orders_id = op.orders_id WHERE products_options_values LIKE '%%' AND products_id = AND zo.date_purchased > DATE_ADD(CURRENT_DATE(), INTERVAL -365 DAY) GROUP BY width ORDER BY total_orders DESC;]
If you were entering information, press the BACK button in your browser and re-check the information you had entered to be sure you left no blank fields.
Any idea ?
Tnx
Bookmarks