SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your TiDB version for the right syntax to use line 1 column 186 near ") order by diff asc limit 30" (SQL: select site,hid,(POW(coordx2-112.129941,2)+POW(coordy2-32.686776,2)) as diff from house where site = 'do' and salestate in (1,2,3,10) and status = 1 and hid != 133078 and district in () order by diff asc limit 30)