That error means exactly what it says. It's an invalid URL that doesn't define a thread_id or valid action. This detailed error message is only shown when debug mode is enabled. Otherwise it just says "The requested page could not be found."
Are you testing random URLs trying to break things? Or is this a legitimate link that you clicked somewhere on your forum?