Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / home > new products get SQL error

home > new products get SQL error

Locked

Views: 920

Results 1 to 6 of 6
This thread is locked. New replies are disabled.
20 Oct 2008, 5:22 AM
#1
keylesslocks avatar

keylesslocks

Zen Follower

Join Date:
May 2007
Posts:
267
Plugin Contributions:
0

home > new products get SQL error

on http://airbrushmakeup.me - when i rollover home and goto new products and click it says:

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 '-0, 0' at line 11
in:
[SELECT p.products_id, p.products_type, pd.products_name, p.products_image, p.products_price, p.products_tax_class_id, p.products_date_added, m.manufacturers_name, p.products_model, p.products_quantity, p.products_weight, p.product_is_call, p.product_is_always_free_shipping, p.products_qty_box_status, p.master_categories_id FROM zen_products p LEFT JOIN zen_manufacturers m ON (p.manufacturers_id = m.manufacturers_id), zen_products_description pd WHERE p.products_status = 1 AND p.products_id = pd.products_id AND pd.language_id = 1 order by p.products_date_added DESC, pd.products_name limit -0, 0]

what does that mean? how can I fix that?

thanks,

~ Eric

20 Oct 2008, 6:49 AM
#2
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: home > new products get SQL error

Check the Similar threads at the bottom of the page of your post

20 Oct 2008, 8:06 PM
#4
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: home > new products get SQL error

Look at the Maximum Values ... have you set something to 0 that needs to have a quantity set to it?

20 Oct 2008, 8:11 PM
#5
keylesslocks avatar

keylesslocks

Zen Follower

Join Date:
May 2007
Posts:
267
Plugin Contributions:
0

Re: home > new products get SQL error

yes.... this: New Products Listing- Number Per Page was set to 0...

thanks so much

20 Oct 2008, 8:57 PM
#6
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: home > new products get SQL error

Thanks for the update that you found the New Products Listing set to 0 on the Maximum Values and it was tripping this error ... :smile: