public function fetchField($fieldName, $useMaster = false)
{
if ($useMaster) {
$sth =& self::$msth;
} else {
$sth =& $this->sth;
}
if (!is_object($sth)) {
$this->errorCode = 'n/a';
$this->errorMsg = 'Statement handle is not an object.';
return -1;
}
while ($row = $sth->fetch(\PDO::FETCH_ASSOC)) {
$this->selectResult[] = $row[$fieldName];
}
return $this->selectResult;
}