Zen Cart Logo
Forums / General Questions / 1064 error in search box

1064 error in search box

Locked

Views: 1,982

Results 1 to 10 of 10
This thread is locked. New replies are disabled.
31 May 2006, 10:32 PM
#1
godin5150 avatar

godin5150

New Zenner

Join Date:
Apr 2006
Location:
Texas
Posts:
37
Plugin Contributions:
0

1064 error in search box

I upgraded to the latest version 1.3.1 and everything works great expect for the search box. When I do a search I get this error:

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 ' p.products_quantity , m.manufacturers_id, p.products_id, pd.products_name, p.p' at line 1
in:
[SELECT DISTINCT , p.products_quantity , m.manufacturers_id, p.products_id, pd.products_name, p.products_price, p.products_tax_class_id, p.products_price_sorter FROM products p LEFT JOIN manufacturers m USING(manufacturers_id), products_description pd, categories c, products_to_categories p2c LEFT JOIN meta_tags_products_description mtpd ON mtpd.products_id= p2c.products_id AND mtpd.language_id = 1 WHERE p.products_status = 1 AND p.products_id = pd.products_id AND pd.language_id = 1 AND p.products_id = p2c.products_id AND p2c.categories_id = c.categories_id AND ((pd.products_name LIKE '%travel%' OR p.products_model LIKE '%travel%' OR m.manufacturers_name LIKE '%travel%' OR (mtpd.metatags_keywords LIKE '%travel%' AND mtpd.metatags_keywords !='') OR (mtpd.metatags_description LIKE '%travel%' AND mtpd.metatags_description !='') OR pd.products_description LIKE '%travel%') ) order by pd.products_name limit 0, 84]

The search feature on my site is not a priority, but I would like it to work.

Can anybody help?

31 May 2006, 10:50 PM
#2
ajeh avatar

ajeh

Oba-san

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

Re: 1064 error in search box

Do you have an URL that we can peek at? This is reminding me of something ... but I need to see your site ... :unsure:

31 May 2006, 10:58 PM
#3
godin5150 avatar

godin5150

New Zenner

Join Date:
Apr 2006
Location:
Texas
Posts:
37
Plugin Contributions:
0

Re: 1064 error in search box

godin5150:

I upgraded to the latest version 1.3.1 and everything works great expect for the search box. When I do a search I get this error:

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 ' p.products_quantity , m.manufacturers_id, p.products_id, pd.products_name, p.p' at line 1
in:
[SELECT DISTINCT , p.products_quantity , m.manufacturers_id, p.products_id, pd.products_name, p.products_price, p.products_tax_class_id, p.products_price_sorter FROM products p LEFT JOIN manufacturers m USING(manufacturers_id), products_description pd, categories c, products_to_categories p2c LEFT JOIN meta_tags_products_description mtpd ON mtpd.products_id= p2c.products_id AND mtpd.language_id = 1 WHERE p.products_status = 1 AND p.products_id = pd.products_id AND pd.language_id = 1 AND p.products_id = p2c.products_id AND p2c.categories_id = c.categories_id AND ((pd.products_name LIKE '%travel%' OR p.products_model LIKE '%travel%' OR m.manufacturers_name LIKE '%travel%' OR (mtpd.metatags_keywords LIKE '%travel%' AND mtpd.metatags_keywords !='') OR (mtpd.metatags_description LIKE '%travel%' AND mtpd.metatags_description !='') OR pd.products_description LIKE '%travel%') ) order by pd.products_name limit 0, 84]

The search feature on my site is not a priority, but I would like it to work.

Can anybody help?

url: http://www.turnkeywebsplus.com

31 May 2006, 11:11 PM
#4
ajeh avatar

ajeh

Oba-san

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

Re: 1064 error in search box

What fields are you displaying on the Configuration ... Product Listing ...

31 May 2006, 11:20 PM
#5
godin5150 avatar

godin5150

New Zenner

Join Date:
Apr 2006
Location:
Texas
Posts:
37
Plugin Contributions:
0

Re: 1064 error in search box

Ajeh:

What fields are you displaying on the Configuration ... Product Listing ...

I'm displaying:

Product Name - 2
Display Product Price/Add to Cart Column Width - 125
Prev/Next Split Page Navigation (1-top, 2-bottom, 3-both) - 3
Prev/Next Split Page Navigation (1-top, 2-bottom, 3-both) - 1
Display Multiple Products Qty Box Status and Set Button Location - 3
Product Listing Ascending Sort Order +
Product Listing - Layout Style - columns
Product Listing - Columns Per Row - 3

31 May 2006, 11:45 PM
#6
vger avatar

vger

Past Contributor

Join Date:
Nov 2004
Location:
Norfolk, United Kingdom
Posts:
3,189
Plugin Contributions:
0

Re: 1064 error in search box

Mmmm? Odd? I have two versions of Zen Cart installed (1.2.2 and 1.3.0) - and neither of them have those last two entries in Admin --> Configuration --> Product Listing. Got them in CRE Loaded, but not in Zen Cart.

Vger

1 Jun 2006, 12:28 AM
#7
ajeh avatar

ajeh

Oba-san

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

Re: 1064 error in search box

godin5150:

I'm displaying:

Product Name - 2
Display Product Price/Add to Cart Column Width - 125
Prev/Next Split Page Navigation (1-top, 2-bottom, 3-both) - 3
Prev/Next Split Page Navigation (1-top, 2-bottom, 3-both) - 1
Display Multiple Products Qty Box Status and Set Button Location - 3
Product Listing Ascending Sort Order +
Product Listing - Layout Style - columns
Product Listing - Columns Per Row - 3

For giggles ... turn on Product Image for a minute ... does this fix the issue?

If not, also turn on Product Model ... how about now?

1 Jun 2006, 12:29 AM
#8
ajeh avatar

ajeh

Oba-san

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

Re: 1064 error in search box

Vger:

Mmmm? Odd? I have two versions of Zen Cart installed (1.2.2 and 1.3.0) - and neither of them have those last two entries in Admin --> Configuration --> Product Listing. Got them in CRE Loaded, but not in Zen Cart.

Vger

I believe those come with the add-on for the multiple columns vs the rows ...

1 Jun 2006, 12:34 AM
#9
vger avatar

vger

Past Contributor

Join Date:
Nov 2004
Location:
Norfolk, United Kingdom
Posts:
3,189
Plugin Contributions:
0

Re: 1064 error in search box

In which case please feel free to ignore the PM.

Vger

1 Jun 2006, 1:23 PM
#10
godin5150 avatar

godin5150

New Zenner

Join Date:
Apr 2006
Location:
Texas
Posts:
37
Plugin Contributions:
0

Re: 1064 error in search box

Ajeh:

For giggles ... turn on Product Image for a minute ... does this fix the issue?

If not, also turn on Product Model ... how about now?

I turned on the product image and that fixed it!

Your the best.... Thank you !