Dennis_gull Posted December 27, 2006 Share Posted December 27, 2006 Hey, I've installed quite a lot of contributions with sql changes and today I found out that search by price didnt work I get this error when I try to search: 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 'select count(distinct p.products_id) from products p left join select count(*) as total from (select count(distinct p.products_id) from products p left join manufacturers m using(manufacturers_id) left join specials s on p.products_id = s.products_id left join tax_rates tr on p.products_tax_class_id = tr.tax_class_id left join zones_to_geo_zones gz on tr.tax_zone_id = gz.geo_zone_id and (gz.zone_country_id is null or gz.zone_country_id = '0' or gz.zone_country_id = '203') and (gz.zone_id is null or gz.zone_id = '0' or gz.zone_id = '0'), 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 '%neverwinter%' or p.products_model like '%neverwinter%' or m.manufacturers_name like '%neverwinter%') and (pd.products_name like '%nights%' or p.products_model like '%nights%' or m.manufacturers_name like '%nights%') and (pd.products_name like '%2%' or p.products_model like '%2%' or m.manufacturers_name like '%2%') ) and (IF(s.status, s.specials_new_products_price, p.products_price) * if(gz.geo_zone_id is null, 1, 1 + (tr.tax_rate / 100) ) >= 1) and (IF(s.status, s.specials_new_products_price, p.products_price) * if(gz.geo_zone_id is null, 1, 1 + (tr.tax_rate / 100) ) <= 100) group by p.products_id, tr.tax_priority order by pd.products_name) as SubQ1 does anyone know how to fix this? Link to comment Share on other sites More sharing options...
Dennis_gull Posted December 29, 2006 Author Share Posted December 29, 2006 anyone? Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.