この mysql クエリがあり、CodeIgniter は初めてです。この mysql クエリを CodeIgniter の Active Record に変換するにはどうすればよいですか?
SELECT chp_destination, cde_name, chp_year, chp_from, chp_to, chp_budget_price_high,
chp_medium_price_high, chp_luxury_price_high, chp_budget_price_low, chp_medium_price_low, chp_luxury_price_low, chp_timestamp, chp_comment , MAX( chp_timestamp ) AS last_updated, MAX( chp_id )
FROM crm_hotel_price
LEFT JOIN crm_destinations ON cde_id = chp_destination
GROUP BY chp_destination, chp_year
ORDER BY chp_id