I'm having a rough time figuring out where to start with getting this query into a Zend_Db_Select. I have never worked with variables assignment and subqueries in Zend:
SELECT
@current_continent := stats_geo_continent.id AS `continent_id`,
(SELECT GROUP_CONCAT(code) from stats_geo_country WHERE stats_geo_country.continent = @current_continent) AS `group`,
stats_geo_country.code
FROM
stats_geo_continent
INNER JOIN
stats_geo_country ON stats_geo_country.continent = stats_geo_continent.id;