Your query is invalid syntax. Look at the examples and docs for the correct syntax and fields you can use.
That said, I don’t think you need a query at all if you want the discounts on the order. Look at the fields discountCode, discountCodes, or discountApplications. The latter is usually the best to use, but depends on which type of discount you have.