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