3065 Expression #1 of ORDER BY clause is not in SELECT list, references column 'marineco_znc1.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 znc_products p LEFT JOIN znc_products_description pd ON (p.products_id = pd.products_id) LEFT JOIN znc_manufacturers m ON (p.manufacturers_id = m.manufacturers_id) LEFT JOIN znc_reviews r ON (p.products_id = r.products_id) WHERE pd.language_id = 1 AND p.products_status = 1 AND p.master_categories_id = 1225 AND p.products_id=20344 ORDER BY p.products_last_modified DESC, p.products_sort_order LIMIT 1]