myBatis マッパーに書いた単純な選択があります。
<select id="listAllOrders" parameterType="java.util.HashMap" resultMap="commonMaps.detailedOrderResultMap">
    select
    <include refid="commonSql.fragmentOrderFields" />,
    <include refid="commonSql.fragmentSummaryPriceInfoFields" />
    from graorder order 
          left outer join grasummarypriceinfo summarypriceinfo on order.totalPrice_id = summarypriceinfo.id
    <if test="userGroupId != null">
        where order.userGroupId = #{userGroupId}
    </if>
    order by order_lastUpdated desc
    <if test="limit != null">
        limit #{limit}
    </if>
</select>
このクエリを実行するときの不平は次のとおりです。
 ### Error querying database.  Cause: com.mysql.jdbc.exceptions.jdbc4.MySQLSyntax
ErrorException: You have an error in your SQL syntax; check the manual that corr
esponds to your MySQL server version for the right syntax to use near 'left oute
r join grasummarypriceinfo summarypriceinfo on order.totalPrice_id = su' at line
 33
私はただ落胆しています。選択にエラーが表示されません...
手がかりはありますか?