3065 - Expression #1 of ORDER BY clause is not in SELECT list, references column 'toxicity_sklep.f.featured_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, p.products_quantity, p.products_price, p.products_tax_class_id, c.categories_status, IF(s.status, s.specials_new_products_price, NULL) as specials_new_products_price, p.products_date_added, m.manufacturers_name from products p
LEFT JOIN manufacturers m ON p.manufacturers_id = m.manufacturers_id
LEFT JOIN products_description pd ON (p.products_id = pd.products_id and pd.language_id = '1') LEFT JOIN specials s on p.products_id = s.products_id
LEFT JOIN featured f ON (p.products_id = f.products_id)
LEFT JOIN products_to_categories p2c ON (p.products_id = p2c.products_id)
LEFT JOIN categories c ON (p2c.categories_id = c.categories_id)
WHERE c.categories_status='1' AND p.products_status = '1' AND f.status = '1' ORDER BY f.featured_date_added DESC
limit 2