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 'MAX_DISPLAY_PRODUCTS_IN_ORDER_HISTORY_BOX' at line 4
in:
[select distinct op.products_id,o.customers_street_address,o.customers_suburb,o.customers_city,o.customers_state,o.customers_country from orders o, orders_products op where o.orders_id = op.orders_id order by o.date_purchased desc limit MAX_DISPLAY_PRODUCTS_IN_ORDER_HISTORY_BOX]
in:
[select distinct op.products_id,o.customers_street_address,o.customers_suburb,o.customers_city,o.customers_state,o.customers_country from orders o, orders_products op where o.orders_id = op.orders_id order by o.date_purchased desc limit MAX_DISPLAY_PRODUCTS_IN_ORDER_HISTORY_BOX]



