I get the error message attached (hopefully) below?
Cut & pasted your query - so shouldn;t be any typos...
Cut & Paste from this forum seems to remove end-of-line breaks. Try this:
SELECT DISTINCT
FlightRoute.flight AS FN,
substr(FlightRoute.route,1,4) AS NO,
substr(FlightRoute.route,length(FlightRoute.route)-3,4) AS ND,
"" AS NV,
substr(date('now'),1,4) || substr(date('now'),6,2) || substr(date('now'),9,2) || "090000" AS CH
FROM FlightRoute
ORDER BY
FN