public function execute($sql, $params = null)
{
$this->sql->adapter()->prepare($sql);
if (null !== $params && is_array($params)) {
$this->sql->adapter()->bindParams((array) $params);
}
$this->sql->adapter()->execute();
// Set the return results.
if (stripos($sql, 'select') !== false) {
$this->setResults();
} else {
if (stripos($sql, 'delete') !== false) {
$this->columns = array();
$this->rows = array();
}
}
}