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)) WHERE t.visible=1 and e.type in (9,2,3,4) ORDER BY e.rating desc ):Unknown column 'e.rating' in 'order clause'