expecting CLOSE, found (
The term CLOSE here refers to a closing bracket, )
.
It would appear that the query parser does not support calling another function inside the count(...)
.
In other words, the syntax error is here:
SELECT su.id, su.nameCn, count(b.id), avg(s.rate), count(concat(b.id, '@', s.user.id))
^
Perhaps you mean to be doing some kind of join, and counting the rows there?
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…