public function execute($sql, array $data)
{
$sth = $this->getDb()->prepare($sql);
$result = $sth->execute($data);
if ($result === false) {
$error = $sth->errorInfo();
$this->lastError = 'DB ERROR: [' . $sth->errorCode() . '] ' . $error[2];
}
return $result;
}