3065 Expression #1 of ORDER BY clause is not in SELECT list, references column 'zencart.p.products_date_added' which is not in SELECT list; this is incompatible with DISTINCT
[SELECT DISTINCT p.products_id, pd.products_name, pd.products_description, p.products_image, GREATEST(p.products_date_added, IFNULL(p.products_last_modified, 0)) AS products_date, p.master_categories_id, p.products_price_sorter AS price, p.products_tax_class_id, p.products_quantity, p.products_model, p.products_weight, p.manufacturers_id, m.manufacturers_name, r.reviews_rating FROM z138a_products p LEFT JOIN z138a_products_description pd ON (p.products_id = pd.products_id) LEFT JOIN z138a_manufacturers m ON (p.manufacturers_id = m.manufacturers_id) LEFT JOIN z138a_reviews r ON (p.products_id = r.products_id) WHERE pd.language_id = 2 AND p.products_status = 1 order by p.products_date_added DESC, pd.products_name LIMIT 100]