Aiutoo!! errore SQL in ricerca e ricerca avanzata
Inviato: 02/12/2004, 2:31
Ho sempre un maledetto problema con la pagina di ricerca e ricerca avanzata. Invece di mostrare i prodotti trovati, mi da il seguente errore:
1064 - You have an error in your SQL syntax near 'distinct p.products_id) as total from products p inner join manufacturers m usi' at line 1
select count(distinct p.products_id) as total from products p inner join manufacturers m using(manufacturers_id), products_description pd inner 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 = '4' and p.products_id = p2c.products_id and p2c.categories_id = c.categories_id and ((pd.products_name like '%tyrtyrt%' or p.products_model...
Premetto che in remoto funziona egregiamente, qualcuno ha qualche soluzione che mi possa risolvere il problema?
Saluti
Maurizio
1064 - You have an error in your SQL syntax near 'distinct p.products_id) as total from products p inner join manufacturers m usi' at line 1
select count(distinct p.products_id) as total from products p inner join manufacturers m using(manufacturers_id), products_description pd inner 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 = '4' and p.products_id = p2c.products_id and p2c.categories_id = c.categories_id and ((pd.products_name like '%tyrtyrt%' or p.products_model...
Premetto che in remoto funziona egregiamente, qualcuno ha qualche soluzione che mi possa risolvere il problema?
Saluti
Maurizio