Search:   
 
   
3065 - Expression #1 of ORDER BY clause is not in SELECT list, references column 'sinheng_sinheng.pd.products_viewed' which is not in SELECT list; this is incompatible with DISTINCT

select distinct p.products_id, pd.products_name, p.products_image from products p, products_description pd, products_to_categories p2c, categories c where p.products_status = '1' and pd.products_viewed > 0 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 '93' in (c.categories_id, c.parent_id) order by pd.products_viewed desc, pd.products_name limit 3

[TEP STOP]

Category