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.073089,2)+POW(coordy2-32.673568,2)) as diff from house where site = 'do' and salestate in (1,2,3,10) and status = 1 and hid != 133076 and district in () order by diff asc limit 30)