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","zona-industrial","ciudad-industrial","zona-centro","benito-juarez","parque-industrial","industrial","cuauhtemoc","morelos","moderna","lazaro-cardenas","independencia","obrera","san-benito","bellavista","guadalupe","los-alamos","napoles","emiliano-zapata","juarez","libertad","francisco-i-madero","santa-maria","progreso","hidalgo","col-centro","miguel-hidalgo","reforma","vista-hermosa","roma","buenos-aires","bugambilias","san-rafael","del-valle","las-americas","garita-de-otay","valle-dorado","coatzacoalcos-centro","guadalupe-victoria","san-isidro","portales","ninos-heroes","zona-rio","vicente-guerrero","adolfo-lopez-mateos","centro-zona-central","francisco-villa","las-palmas","loma-bonita","pueblo-nuevo","casa-blanca","20-de-noviembre","alamos","doctores","buenavista","central-de-abastos","civac","los-pinos","centro-urbano","del-norte","petrolera","san-pablo","azteca","maria-de-la-piedad","torreon-centro","5-de-mayo","chapultepec","mexico","plan-de-ayala","colima-centro","gonzalez-ortega","las-flores","moctezuma","monterrey-centro","valle-verde","aviacion","campestre","centro-civico-y-comercial","fuentes-del-valle","industrial-vallejo","san-pedro-de-los-pinos","vertiz-narvarte","la-cuesta","las-granjas","las-torres","pro-hogar","santa-barbara","aeropuerto","altamira","insurgentes","los-angeles","pqind-lerma","san-cayetano","san-felipe","venustiano-carranza","alvaro-obregon","del-valle-centro","mitras-centro","nombre-de-dios","san-antonio") AND fk_id_city_nei= ORDER BY slug_nei (1630)