I know usage of Zend_Db_Select is optional, but I was wondering if there was a way to use it to generate the following SQL:
LEFT JOIN (pages p
, core_url_rewrite url)
ON p.page_id = mi.page_id
AND url.page_id = p.page_id
.. or if that's not supported. From what i can see you can only join one table at a time. If u include the tables as a Zend_Db_Expr:
->joinLeft(new Zend_Db_Expr('(pages p, core_url_rewrite url)'),
'ON p.page_id = mi.page_id
AND url.page_id = p.page_id')
then i'd end up with something like the following, which isn't valid
LEFT JOIN (pages p
, core_url_rewrite url) AS t
ON p.page_id = mi.page_id
AND url.page_id = p.page_id