3065 - Expression #1 of ORDER BY clause is not in SELECT list, references column 'raykomka_oscmax.p.products_date_added' which is not in SELECT list; this is incompatible with DISTINCT
select distinct p.products_id, p.products_model, pd.products_name, m.manufacturers_name, p.products_quantity, p.products_image, p.products_weight, p.products_ordered, p.products_sort_order, pd.products_short, p.manufacturers_id, p.products_msrp, p.products_sort_order, p.products_status, p.products_price, p.products_tax_class_id, p.products_featured, p.products_quantity, 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_description pd, products p left join manufacturers m on p.manufacturers_id = m.manufacturers_id left join specials_retail_prices s on p.products_id = s.products_id, products_to_categories p2c left join categories c using(categories_id) where (p.products_status = '1' OR p.products_status = '2') and p.products_id = p2c.products_id and pd.products_id = p2c.products_id and pd.language_id = '1' and find_in_set('0', p.products_hide_from_groups) = 0 order by products_date_added desc, p.products_sort_order asc, pd.products_name limit 725, 25
[TEP STOP]
|