Syntax error, unexpected token ORDER, near to ' BY slug_nei', when parsing: SELECT COUNT(1) as totalx FROM [InfoIsInfo\Models\Neighborhoods] AS [neighborhoods] WHERE score_nei > 0 AND slug_nei IN ("centro","magdalena-mixiuhca","portales","san-jose-insurgentes","agricola-oriental","comercial","morelos","residencial-campestre","san-pedro-de-los-pinos","sector-norte","vista-hermosa","camino-real","churubusco","ciudad-granja","del-valle","del-valle-centro","fracc-las-margaritas","jalpa-centro","jards-sn-lorenzo-tezonco","la-fama","la-lejona","las-alamedas","las-huertas","letran-valle","loma-del-rio","los-angeles","los-morales-1a-seccion","los-pinos","mascarenas","moderna","monterrey-centro","nativitas","navidad","nueva-atzacoalco","pantitlan","portales-sur","proyecto-urbano-tres-rios","rancho-alegre-1","residencial-patria","ricardo-flores-magon","san-antonio","san-francisco-coacalco","san-jeronimo-lidice","san-miguel-chapultepec-i-secc","santa-rosa","santa-rosa-de-lima","tampico","tepalcata","tolteca","unidad-obrera","villa-de-las-flores","xoco","agricola-pantitlan","agua-dulce-centro","aguilera","alamos","altabrisa","altamira","altavista","americana","ampliacion-guaycura","ampliacion-los-angeles","andrade","aralias","arenal-de-guadalupe","artesanos","atlacomulco","autocinema","av-del-parque","azcarate","barrio-del-pasito","barrio-santa-cruz-acayucan","barrio-zaragoza","benito-juarez","benito-juraez","brisas-del-pacifico","buena-vista","campestre-tlacopac","cancun-centro","candiles","capricornio","central-de-abasto","centro-civico-y-comercial","centro-poniente","centro-urbano","chapala-centro","chapala-haciendas","chapalita-oriente","circunvalacion-vallarta","ciudad-industrial","col-campestre","colonia-centro","colonia-llanitos","colonia-los-alpes","condesa","cosamaloapan-de-carpio-centro","costa-azul","cto-mexico-d-f","cuauhtemoc","del-lago-sector-1") AND fk_id_city_nei= ORDER BY slug_nei (1842)