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-centro","centro-zona-central","primera-seccion","guadalajara-centro","zona-rio","juarez","cuauhtemoc","comercial","del-valle","fresnillo","fundo-legal","nueva","centro-civico-y-comercial","benito-juarez","independencia","la-paz","obrera","aviacion","cd-delicias","chapultepec","izucar-de-matamoros","napoles","nuevo-casas-grandes-centro","revolucion","santa-maria","tlaltenango","ameca-centro","ciudad-cuauhtemoc-centro","ciudad-delicias-centro","libertad","morelos","apaseo-el-alto","coatzacoalcos-centro","cto-la-cd-mexico-area-1","cuauhtemoc-norte","irapuato","jardines-del-moral","medardo-gonzalez","nuevo-ideal","penon-de-los-banos","reforma","rodriguez","tamazula","villas-del-juncal","burocrata","cd-parral","centro-zona-este","centro-zona-norte","col-centro","del-prado","el-florido","fracc-rio-bravo","jardines-de-san-jose","jerez-centro","las-americas","monumental","playas-de-tijuana","puerto-vallarta-centro","rio-grande-centro","roma","valle-del-campestre","campestre","condominio-plaza-del-sol","ensenada-centro","francisco-murguia","francisco-villa","garita-de-otay","hidalgo","marron","mirador-del-sol","mitras-centro","pueblo-nuevo","salahua","san-felipe","san-isidro","san-juan-de-los-lagos-centro","san-lorenzo","santiago-papasquiaro","soler","sombrerete","tecoman-centro","tenancingo","acambaro","acambaro-centro","aeropuerto","bellavista","buenavista","ciudad-playa-del-carmen","colima-centro","el-centenario","fuentes-del-valle","guadalupe","industrial","jardin","la-mesa","las-brisas","lindavista","loma-bonita","los-alamos") AND fk_id_city_nei= ORDER BY slug_nei (1722)