so I have this code:
$sql = new Zend_Db_Select($db);
$sql->from("j");
$sql->join("k","k.id = j.id",array());
echo $sql;
which results in the query:
SELECT `j`.* FROM `j` INNER JOIN `k` ON k.id = j.id
but I don’t just want j.*
I also want k.*
how do I specify zend_db_select for this?
The third parameter for join() is
columnsfor select. You have passed an empty array.Note: for this condition
k.id = j.idyou should use LEFT JOIN(->joinLeft(…))