CREATE TABLE table_11240028_1 (last_appearance VARCHAR(255), portrayed_by VARCHAR(255))
Which episode did actor A. J. Buckley last appear in?
    
SQL: SELECT last_appearance FROM table_11240028_1 WHERE portrayed_by = "A. J. Buckley"