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","benito-juarez","del-valle","zona-centro","emiliano-zapata","guadalupe","industrial","vista-hermosa","guadalajara-centro","reforma","roma","cuauhtemoc","obrera","independencia","campestre","juarez","ricardo-flores-magon","bellavista","del-valle-centro","los-pinos","centro-zona-central","jardines-del-moral","la-purisima","libertad","centro-urbano","fresnillo","ciudad-industrial","las-americas","morelos","san-isidro","santa-cruz-atoyac","francisco-i-madero","guadalupe-victoria","mitras-centro","san-miguel","comercial","cuautitlan","hidalgo","mixcoac","progreso","santa-barbara","venustiano-carranza","buenavista","ciudad-satelite","melchor-ocampo","miramar","moderna","5-de-mayo","bugambilias","el-colli-urbano","jalapa-enriquez-centro","jardines-del-valle","magallanes","periodista","residencial-la-estancia","tecnologico","tecoman-centro","aviacion","lazaro-cardenas","mexico","miguel-hidalgo","san-sebastian","tampico","unidad-nacional","villa-de-las-flores","zacatecas-centro","zona-rio","1-de-mayo","arboledas","el-roble","las-fuentes","los-angeles","pueblo-nuevo","puerta-de-hierro","santa-ana","santa-rosa","zona-industrial","altavista","barrio-hojalateros","fracc-rio-bravo","la-fama","renacimiento","revolucion","roma-sur","san-angel","san-francisco","san-rafael","tacubaya","tapachula-centro","valle-dorado","aeropuerto","bella-vista","costa-azul","francisco-villa","las-arboledas","las-brisas","las-palmas","magisterial","periodistas","petrolera") AND fk_id_city_nei= ORDER BY slug_nei (1630)