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 ("delicias","la-vila-de-gracia","periurbano","aluche","del-pilar","el-bon-pastor","pinar-del-rey","pol-ind","sant-andreu","el-poblenou","san-andres","san-isidro","actur-rey-fernando","caamano-las-viudas-pol-san-cristobal","la-verneda-i-la-pau","san-jose","el-guinardo","la-prosperitat","sants","sants-badal","abando","el-camp-de-larpa-del-clot","el-raval","juan-de-la-cierva","la-dreta-de-leixample","las-fuentes","oliver-valdefierro","pol-ind-la-juaida","poligono-la-portalada-i","vista-alegre","zona-rural-este","almenara","almendrales","arapiles","comillas","cuatro-caminos","el-besos-i-el-maresme","el-poble-sec","horta","pol-ind-la-estrella","porta","puerta-bonita","sant-gervasi-galvany","casco-historico-de-vallecas","centro","divina-pastora","el-clot","la-nova-esquerra-de-leixample","la-sagrada-familia","lantiga-esquerra-de-leixample","navas","numancia","pol-ind-el-canamo","pol-ind-mutilva-baja","poligono-industrial-prado-overa","poligono-industrial-urtinsa","portazgo","puerta-del-angel","santutxu","torrero","ventas","vilapicina-i-la-torre-llobeta","zofio","barrio-de-la-estacion","basurtu","benicalap","benimaclet","el-cabanyal-el-canyamelar","el-camp-den-grassot-i-gracia-nova","el-parc-i-la-llacuna-del-poblenou","errekaldeberri","hispanoamerica","hostafrancs","la-bordeta","las-flores","parque-empresarial-el-pinillo","poligono-pelagatos","sansomendi","sant-marti-de-provencals","valdeacederas","zade-valmor","ambroz","canillejas","ciudad-de-asis","ciudad-jardin","eixample-nord","el-carmel","embajadores","figares","la-alhondiga","la-maternitat-i-sant-ramon","la-teixonera","larraskitu","les-corts","lhort-de-senabre","palomeras-bajas","palomeras-sureste","pol-ind-la-red","pol-ind-les-salines","pol-ind-san-rafael") AND fk_id_city_nei= ORDER BY slug_nei (1893)