static function LastLayoutLog(Layout $layout)
    {
        $tblLogLayout = LogLayout::Schema()->Table();
        $tblLogItem = LogItem::Schema()->Table();
        $sql = Access::SqlBuilder();
        $orderBy = $sql->OrderList($sql->OrderDesc($tblLogItem->Field('Changed')));
        $joinCond = $sql->Equals($tblLogLayout->Field('LogItem'), $tblLogItem->Field('ID'));
        $where = $sql->Equals($tblLogLayout->Field('Layout'), $sql->Value($layout->GetID()));
        return LogItem::Schema()->First($where, $orderBy, null, $sql->Join($tblLogLayout), JoinType::Inner(), $joinCond);
    }