I want to output a query generated by the select () Zend_Db_Table statement for testing, but I do not know how to do this.
It is really very simple. The select object implements the toString method.
$select = $table->select()->.... echo $select; //prints SQL
or
$sql = $select->__toString();
or translate it into a string and then use:
(string)$table->select();