IF EXISTS (  
    SELECT 1   
    FROM INFORMATION_SCHEMA.COLUMNS   
    WHERE TABLE_NAME = 'IDCardInstance'   
    AND COLUMN_NAME = 'lastClassifiedItemIds'  
)
BEGIN  
    ALTER TABLE IDCardInstance  
    DROP COLUMN lastClassifiedItemIds;
END