public function getVar($query = null)
{
if (is_null($query)) {
$query = $this->command();
}
$result = $this->row($query);
$key = array_keys(get_object_vars($result));
return $result->{$key}[0];
}