KDesigns Posted June 18, 2004 Share Posted June 18, 2004 Hi all, Been modifying a new site for a client and I just tested the Search Form and I'm getting an invalid syntax error: 1064 - You have an error in your SQL syntax near 'distinct p.products_id) as total from products p left join manufacturers m usin' at line 1 select count(distinct p.products_id) as total from products p left join manufacturers m using(manufacturers_id), products_description pd left join specials s on p.products_id = s.products_id, 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 '%video%' or p.products_model like '%video%' or m.manufacturers_name like '%video%') and (pd.products_name like '%cared%' or p.products_model like '%cared%' or m.manufacturers_name like '%cared%') ) [TEP STOP] Your help in straightening this out is MORE than appreciated! :tup: Link to comment Share on other sites More sharing options...
♥bruyndoncx Posted June 18, 2004 Share Posted June 18, 2004 can you get rid of the distinct, I think the count function might not like that KEEP CALM AND CARRY ON I do not use the responsive bootstrap version since i coded my responsive version earlier, but i have bought every 28d of code package to support burts effort and keep this forum alive (albeit more like on life support). So if you are still here ? What are you waiting for ?! Find the most frequent unique errors to fix: grep "PHP" php_error_log.txt | sed "s/^.* PHP/PHP/g" |grep "line" |sort | uniq -c | sort -r > counterrors.txt Link to comment Share on other sites More sharing options...
KDesigns Posted June 19, 2004 Author Share Posted June 19, 2004 Worked perfectly! Thanks for the help! Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.