Błąd zapytania sql : SELECT DISTINCT id,name,price FROM (SELECT id,name,price FROM product WHERE active=1 AND promotion=1 AND promotionTime=0 UNION SELECT id,name,price FROM product WHERE active=1 AND promotion=1 AND promotionTime=1 AND promotionFromDate<='2020-06-06' AND promotionToDate>='2020-06-06') AS q ORDER BY position ASC
Unknown column 'position' in 'order clause'