zpupster Posted October 16, 2012 Posted October 16, 2012 hello support, below is the error i get when trying to do a search. i tried this solution but it did not work. replaced this with this line in split_page_results.php, to which was suggested and it did not work, i have other osc2.31 sites that the search works, this site i have very few add ons and none that would conflict with the search. any ideas? $this->sql_query .= " limit " . max($offset,0) . ", " . $this->number_of_rows_per_page; 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 'distinct p.products_image, m.manufacturers_id, p.products_id, pd.products_name,' at line 1 select pd.products_description, distinct p.products_image, m.manufacturers_id, p.products_id, pd.products_name, p.products_price, p.products_tax_class_id, IF(s.status, s.specials_new_products_price, NULL) as specials_new_products_price, IF(s.status, s.specials_new_products_price, p.products_price) as final_price from products p left join manufacturers m using(manufacturers_id) left join specials s on p.products_id = s.products_id, products_description pd, categories c, products_to_categories p2c 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 '%brace%' or p.products_model like '%brace%' or m.manufacturers_name like '%brace%' or pd.products_description like '%brace%') ) order by pd.products_name limit 0, 20 thanks craig
zpupster Posted October 16, 2012 Author Posted October 16, 2012 hello, i used exam diff to compare advanced search.php and they are identical from a site that the search works, and a site where it does not. thanks craig
zpupster Posted October 16, 2012 Author Posted October 16, 2012 compared the 2 files for split_page results and the only differnce was the line i updated suggested from another post and mentioned above. additionally checked mysqlversions one is 5.091 (the one with the error). and the good one has--5.1.62
Recommended Posts
Archived
This topic is now archived and is closed to further replies.