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<='2019-07-21' AND promotionToDate>='2019-07-21') AS q ORDER BY position ASC
Unknown column 'position' in 'order clause'