Raw query on Zend framework

Zend_Db_Table_Abstract::getDefaultAdapter()->query($sql);
Zend_Db_Table_Abstract::getDefaultAdapter()->query($sql)->fetch(); //if you need to fetch results

if it does not work, use the db handler Pdo), and call – for example – exec()

Zend_Db_Table_Abstract::getDefaultAdapter()->getConnection()->exec($sql);