CREATE TABLE table_27155243_4 (episode__number INT, written_by VARCHAR)

What episode was written by Matt Maclennan?
SELECT MAX(episode__number) FROM table_27155243_4 WHERE written_by = "Matt MacLennan"
SELECT MAX("episode__number") FROM "table_27155243_4" WHERE "Matt MacLennan" = "written_by"