我正在尝试执行以下查询,但出现上述错误。有任何想法吗?
session.CreateQuery("SELECT SUM(NumberHead) AS numberhead " +
"FROM Purchase "
+"INNER JOIN Lot "
+ "ON Purchase.FeedLot = Lot.Id "
+ "WHERE Purchase.CohortState = 0").List();