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","juarez","zona-centro","zona-rio","hipodromo-condesa","del-valle-centro","reforma","guadalupe","roma","napoles","santa-cruz-atoyac","centro-civico-y-comercial","centro-zona-central","col-centro","las-palmas","tabacalera","la-martinica","san-benito","anzures","campestre","guerrero","lomas-de-chapultepec-i-secc","san-felipe","zona-pronaf","barrio-zopilocalco","campo-bello","colima-centro","comercial","gamez","las-reynas","manzanillo-centro","obrera","obrera-campesina","piedad-narvarte","san-roman","actipan","aguascalientes-2000","americas-britania","badillo","benito-juarez","coatzacoalcos-centro","cordoba-centro","doctores","longoria","magisterial","moctezuma","primera-seccion","puebla","region-98","san-pedro-de-los-pinos","san-rafael","tecoman-centro","tezontepec","chapultepec-sur","colegio","condesa","cto-la-cd-mexico-area-1","ejidal","fresnillo","gertrudis-bocanegra","hidalgo","industrial","insurgentes","jalapa-enriquez-centro","josue-molina","lagos-de-moreno-centro","las-americas","las-fuentes","libertad","lomas-de-circunvalacion","los-angeles","moderna","morelos","narvarte","noche-buena","nonoalco","parque-industrial-puebla-2000","riberena","rodriguez","roma-sur","san-jose-insurgentes","san-luis-potosi-centro","san-roque","segunda-seccion","sm-20","xicohtencatl","27-de-septiembre","agustin-arriaga-rivera","aviacion","caminera","centro-d-f","centro-urbano","ciudad-del-carmen-centro","constitucion","costa-brava","country-club","cuauhtemoc","del-valle","el-mirador","el-paraiso") AND fk_id_city_nei= ORDER BY slug_nei (1671)