code/Debug/controllers/ModelController.php
public function selectSqlAction()
    {
        if ($query = $this->_initQuery()) {
            $helper = Mage::helper('sheep_debug');
            $results = $helper->runSql($query->getQuery(), $query->getQueryParams());
            $this->renderTable($results);
        }
    }
public function selectSqlAction()
    {
        if ($query = $this->_initQuery()) {
            $helper = Mage::helper('sheep_debug');
            $results = $helper->runSql($query->getQuery(), $query->getQueryParams());
            $this->renderTable($results);
        }
    }
Runs specified SQL