I am trying to construct this query with Zend DB:
SELECT
`s` . * ,
`a` . *
FROM
`shr_statement` AS `s`
LEFT JOIN
`shr_answer` AS a`
ON
a.statement_id = s.statement_id
AND
a.user_id =1
WHERE
(s.language = 'en_US') AND (s.is_active =1 )
ORDER BY
`order` ASC
I read about a possible issue with the double 'ON' statement ...
Thanks!