Guest Posted November 9, 2005 Share Posted November 9, 2005 Two errors that i found after i fixed my last issue....this ones when i go to orders under customers Orders Order ID: Status: All OrdersPendingProcessingDelivered Customers Order Total Date Purchased Status Action 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 '-20, 20' at line 1 select o.orders_id, o.customers_name, o.payment_method, o.date_purchased, o.last_modified, o.currency, o.currency_value, s.orders_status_name, ot.text as order_total from orders o left join orders_total ot on (o.orders_id = ot.orders_id), orders_status s where o.orders_status = s.orders_status_id and s.language_id = '1' and s.orders_status_id = '2' and ot.class = 'ot_total' order by o.orders_id DESC limit -20, 20 [TEP STOP] and then this is the other error Best Products Purchased No. Products Purchased 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 '-20, 20' at line 1 select p.products_id, p.products_ordered, pd.products_name from products p, products_description pd where pd.products_id = p.products_id and pd.language_id = '1' and p.products_ordered > 0 group by pd.products_id order by p.products_ordered DESC, pd.products_name limit -20, 20 [TEP STOP] and one other Best Customer Orders-Total No. Customers Total Purchased 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 '-20, 20' at line 1 select c.customers_firstname, c.customers_lastname, sum(op.products_quantity * op.final_price) as ordersum from customers c, orders_products op, orders o where c.customers_id = o.customers_id and o.orders_id = op.orders_id group by c.customers_firstname, c.customers_lastname order by ordersum DESC limit -20, 20 [TEP STOP] Please help! Thanks! Link to comment Share on other sites More sharing options...
Guest Posted November 9, 2005 Share Posted November 9, 2005 neone? Link to comment Share on other sites More sharing options...
Wendy James Posted November 9, 2005 Share Posted November 9, 2005 I posted earlier about the 1064 error, its the name of the thread. http://www.oscommerce.com/forums/index.php?showtopic=179700&hl= Wendy James Creativity is allowing yourself to make mistakes. Art is knowing which ones to keep. Link to comment Share on other sites More sharing options...
Guest Posted November 9, 2005 Share Posted November 9, 2005 thanks much! Link to comment Share on other sites More sharing options...
Wendy James Posted November 9, 2005 Share Posted November 9, 2005 No problem. So you know in the future the 1064 (atleast the one that says near '-20, 20' at line 1) happens in the admin area when you have an empty table. ie: no sale products yet, no customers yet.... or you have deleted everyone and there is no info available. :) Wendy James Creativity is allowing yourself to make mistakes. Art is knowing which ones to keep. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.