Get value from column, from last row

@param string $column_name
@return mixed|NULL
165916
function getColumnValue($column_name)
    {
        return isset($this->last_row[$column_name]) ? $this->last_row[$column_name] : null;
    }
1219794
public function lastIndexByName($name) {
        for ($i = count($this->tokens) - 1; $i >= 0; $i--) {
            if ($this->tokens[$i]->getName() === $name) {
                return $i;
            }
        }

        return null;
    }
806993
protected function getColumnOption($column_key, $option_name, $default = NULL)
    {
        return isset($this->columns[$column_key][$option_name]) ? $this->columns[$column_key][$option_name] : value($default);
    }
188396
protected function _getValue( $sql, $column, $name = 'db' )
	{
		$result = $this->_getConnection( $name )->create( $sql )->execute();

		if( ( $row = $result->fetch() ) === false ) {
			throw new MW_Setup_Exception( sprintf( 'No rows found: %1$s', $sql ) );
		}

		if( array_key_exists( $column, $row ) === false ) {
			throw new MW_Setup_Exception( sprintf( 'No column "%1$s" found: %2$s', $column, $sql ) );
		}

		$result->finish();

		return $row[$column];
	}
646862
public static function column(array $array, $column_key)
    {
        $retarr = [];
        foreach ($array as $arr) {
            if (is_array($column_key)) {
                $ret = [];
                foreach ($column_key as $key) {
                    $ret[] = isset($arr[$key]) ? $arr[$key] : null;
                }
                $retarr[] = $ret;
            } else {
                $retarr[] = $arr[$column_key];
            }
        }
        return $retarr;
    }
328865
public function getFirstDescendant($class_name)
    {
        if (!class_exists($class_name) && !interface_exists($class_name)) {
            return null;
        }

        $out = null;

        foreach ($this->fields as $field) {
            if ($field instanceof $class_name) {
                $out = $field;
                break;
            }

            if ($field instanceof SwatUIParent) {
                $out = $field->getFirstDescendant($class_name);
                if ($out !== null) {
                    break;
                }
            }
        }

        return $out;
    }
674126
public function getRowAt($row_num)
    {
        if ($this->seek($row_num)) {
            $this->next();

            return $this->getCurrentRow();
        } else {
            return null;
        }
    }
413602
public function getValue($row, $col)
    {
        $returnValue = null;
        $data = $this->getData();
        if (isset($data[$row][$col])) {
            $returnValue = $data[$row][$col];
        } else if (isset($data[$row]) && is_string($col)) {
            // try to access by col name.
            $mapping = $this->getColumnMapping();
            for ($i = 0; $i < count($mapping); $i++) {

                if ($mapping[$i] == $col && isset($data[$row][$col])) {
                    // Column with name $col extists.
                    $returnValue = $data[$row][$col];
                }
            }
        } else {
            throw new InvalidArgumentException("No value at ${row},${col}.");
        }
        return $returnValue;
    }
931679
public function getFirstDescendant($class_name)
    {
        if (!class_exists($class_name) && !interface_exists($class_name)) {
            return null;
        }

        $out = null;

        if ($this->widget instanceof $class_name) {
            $out = $this->widget;
        }

        if ($out === null && $this->widget instanceof SwatUIParent) {
            $out = $this->widget->getFirstDescendant($class_name);
        }

        return $out;
    }
928891
public function findIn($table_name, $column_name, array $in_array) {
            $params = $this->getEnumeratedParameterList($table_name . '_' . $column_name, $in_array);

            $query = "SELECT * FROM $table_name WHERE $column_name IN (" . $this->keyList($params) . ')';
            $records = $this->query($query, $params);

            return $records;
        }
75868
private function getValue($tag_name) {
		return is_null($this->tag) ? $this->empty : $this->tag->getChildValue($tag_name);
	}
233908
public function get($field_key)
	{
		if ( isset($this->fields[$field_key]) ) {
			return $this->fields[$field_key];
		}

		return null;
	}
687714
public function getRow($index = 0, $column = null)
    {
        if (is_string($index)) {
            $column = $index;
            $index = 0;
        }

        $rows = $this->getRows();

        if (!is_null($column) && isset($rows[$index][$column])) {
            return $rows[$index][$column];
        } else if (is_null($column) && isset($rows[$index])) {
            return $rows[$index];
        }

        return null;
    }
1091337
public function getColumn($name)
    {
        return isset($this->columns[$name]) ? $this->columns[$name] : false;
    }
388111
static function getConnection($db_name=null) {
		if (null === $db_name) {
			$keys = array_keys(self::$parameters);
			$db_name = reset($keys);
		}

		if (!@$db_name) {
			return null;
		}

		return self::connect($db_name);
	}
1160459
public function get($queue_name)
    {
        if ($this->connector->exec('UPDATE '.$this->table.' force index(PRIMARY) SET owner_thread_id=GREATEST(CONNECTION_ID() ,(@msgID:=id)*0),last_cosume_time=? WHERE queue_name=? and owner_thread_id=-1 order by id LIMIT 1;', [time(), $queue_name]))
        {
            $row = $this->connector->query('select id, worker, params from '.$this->table.' where id=@msgID')->fetchColumn();
            return $row;
        }

        return false;
    }
1233682
public static function get_post_id_by_name( $post_name ) {
		global $wpdb;
		$query = $wpdb->prepare("SELECT ID FROM $wpdb->posts WHERE post_name = %s LIMIT 1", $post_name);
		$result = $wpdb->get_row($query);
		if ( !$result ) {
			return null;
		}
		return $result->ID;
	}