An easier-to-read link: http://en.wikipedia.org/wiki/Non-stop_flight#Longest_flights
When you say "longest," do you mean by miles or block time? Because one of my flights was 18 hours (well, like 17:56 iirc), but only 7th on that wikipedia list.
Ny to Korea. Think it's about 16 hours or so.