public function fetch()
{
if (null !== $this->statement) {
return $this->statement->fetch();
} else {
if (!isset($this->result)) {
throw new Exception('Error: The database result resource is not currently set.');
}
return $this->result->fetch_array(MYSQLI_ASSOC);
}
}