public static function loadById(int $id, string $column = '') {
		$class = get_called_class();
		$model = new $class();
		$pk = $model->pk;
		$last = array_pop($model->pk);
		$result = $model->get([
			'where' => [
				$last => $id
			],
			'pk' => [$last],
			'single_row' => true,
			'skip_acl' => true
		]);
		if (!empty($column)) {
			return $result[$column] ?? null;
		}
		return $result;
	}
public static function loadById(int $id, string $column = '') {
		$class = get_called_class();
		$model = new $class();
		$pk = $model->pk;
		$last = array_pop($model->pk);
		$result = $model->get([
			'where' => [
				$last => $id
			],
			'pk' => [$last],
			'single_row' => true,
			'skip_acl' => true
		]);
		if (!empty($column)) {
			return $result[$column] ?? null;
		}
		return $result;
	}
public static function loadById ( int $ id , string $ column = '' ) { $ class = get_called_class ( ) ; $ model = new $ class ( ) ; $ pk = $ model -> pk ; $ last = array_pop ( $ model -> pk ) ; $ result = $ model -> get ( [ 'where' => [ $ last => $ id ] , 'pk' => [ $ last ] , 'single_row' => true , 'skip_acl' => true ] ) ; if ( ! empty ( $ column ) ) { return $ result [ $ column ] ?? null ; } return $ result ; }
Load by id

@param int $id
@param string $column
@return array | boolean
Load by id