This is the code in ZF (simplification of a real problem):
<?php
$nested = $table->select()
->where('name = :var')
->bind(array('var' => 'my value'));
$select = $table->select()
->join(array('nested' => $nested), 'nested.id = id', array());
$table->fetchAll($select);
The variable :var
is not "bind-ed" in this scenario. What am I doing wrong?