--Database error: Unknown column 'r.art_id' in 'group statement' for query

		SELECT DISTINCT m.modellID, m.art_no, m.familyID, m.plastID, m.markeID, m.katID, m.typID, m.editionID, m.price_type_id, 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_color_id, matt.diameter, matt.weight, matt.mf_link, matt.introduced, matt.updated,
		md.modell, md.modell_description, md.discsport_comment,
		mf.family_id, mf.family, mf.fa_type_id, mf.fa_speed, mf.fa_glide, mf.fa_turn, mf.fa_fade, mf.family_tagline, mf.family_description,
		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 m
		INNER JOIN (modell_family mf, modell_description md, modell_attributes matt, marke ma, typ t, kat k, plast p, modell_status ms,
		feature f, feature_connection fc)
		ON (m.familyID = mf.family_id 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)
		WHERE
		ms.statusID NOT IN (2,3) AND fc.feature_id = f.feature_id AND f.feature_id = '33' AND m.statusID < 10  GROUP BY r.art_id ORDER BY fiveStars DESC, qtyReviews DESC, avgRating DESC, CHAR_LENGTH(body) DESC LIMIT 0, 150
in /home/discrtse/public_html/shopping/modeller.php on line 1319