Database error: Unknown column 'qtySold' in 'order clause' for query

		SELECT m.modellID, m.art_no, m.familyID, m.plastID, m.markeID, m.katID, m.typID, m.editionID, m.price_type_id, m.statusID, m.statusID as artStatID, m.prioID, m.price_sek, m.price_eur, m.sale_sek, m.sale_eur,  m.back_up_qty,
		matt.model_year, matt.turn, matt.speed, matt.glide, matt.fade, matt.img_file, matt.img_file_type, matt.img_file_qty, matt.img_file_str, matt.img_color_id, matt.diameter, matt.weight, matt.mf_link, matt.introduced, matt.updated,
		sum(oi.qty) as qty,
		md.modell,
		mf.family_id, mf.family, mf.fa_type_id, mf.fa_speed, mf.fa_glide, mf.fa_turn, mf.fa_fade,
		ma.marke, (mf.fa_speed + mf.fa_glide) AS distance, (mf.fa_turn + mf.fa_fade) AS direction,
		k.kat, t.typ, t.typ_en, p.plast, p.qualityID, p.p_price_sek, p.p_price_eur
		FROM modell_family mf
		INNER JOIN (modell m, modell_description md, modell_attributes matt, marke ma, typ t, kat k, plast p, modell_status ms, feature f, feature_connection fc, orders o, order_items oi)
		ON (mf.family_id = m.familyID AND m.modellID = md.modellID AND m.modellID = matt.modellID AND  m.statusID = ms.statusID
		AND m.markeID = ma.markeID AND m.typID = t.typID AND m.katID = k.katID AND m.plastID = p.plastID
		AND m.modellID = fc.modell_id AND fc.feature_id = f.feature_id)
		WHERE f.feature_id = '33' AND oi.o_id = o.o_id AND oi.modellID = m.modellID AND md.language_id = '1'
	 AND  o.statusID < '10' AND o.statusID != '2' AND o.pay_method > 0 AND o.pay_method < 18 AND o.konto_id != '6' AND o.r_code IN ('', '00', '00V', '00MC') AND YEAR(o.o_timestamp) = '2018' AND m.statusID < 10  GROUP BY m.modellID ORDER BY  qtySold DESC LIMIT 0, 25
in /home/discrtse/public_html/shopping/modeller.php on line 917