MAX from table logic (empty message list logic)