3065 Expression #1 of ORDER BY clause is not in SELECT list, references column 'wowbobbl_ehead.p.products_last_modified' which is not in SELECT list; this is incompatible with DISTINCT
in:
[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 products p LEFT JOIN products_description pd ON (p.products_id = pd.products_id) LEFT JOIN manufacturers m ON (p.manufacturers_id = m.manufacturers_id) LEFT JOIN reviews r ON (p.products_id = r.products_id) WHERE pd.language_id = 1 AND p.products_status = 1 AND p.master_categories_id = 44 ORDER BY p.products_last_modified DESC, p.products_sort_order LIMIT 100]