Query failed (SELECT count(*) as amount FROM web_excursions as e JOIN web_excursion_types as et ON (e.type = et.ID) JOIN web_tours as t ON (e.ID = t.excursion_id and (t.startDate>NOW() or et.noDateTours=1)) LEFT JOIN web_excursion2tags as e2t ON (e2t.excursion_id=e.ID) WHERE t.visible=1 and e.type in (1,5,6,7,10,8,9) and e2t.tag_id in (1) GROUP BY e.ID, t.ID ORDER BY e.rating desc ):Unknown column 'e.rating' in 'order clause'