I currently use Zend_Db to manage my queries. I\'ve written already code that preforms queries like the one below:
$handle->select()->from(\'user_id\')
When you need it somewhere else (like in join) or you are unsure if it will be escaped then you can always use $this->getAdapter()->quoteInto('type = ?',1);
$this->getAdapter()->quoteInto('type = ?',1);