The worst Star Trek Next Generation episode is widely regarded to be "Shades of Gray". It was a previous clip show created due to a lack of funds left over from other episodes during the second season and the writer, Maurice Hurley, refers to it as a "piece of shit".
Previous Fact Next Fact