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 ("actur-rey-fernando","delicias","sant-andreu","san-jose","el-carmel","las-fuentes","horta","la-sagrera","la-verneda-i-la-pau","vilapicina-i-la-torre-llobeta","benicalap","la-prosperitat","el-clot","el-poblenou","santutxu","sant-marti-de-provencals","les-corts","el-guinardo","aluche","el-camp-de-larpa-del-clot","la-bordeta","numancia","universidad","la-dreta-de-leixample","lantiga-esquerra-de-leixample","la-sagrada-familia","la-vila-de-gracia","pinar-del-rey","sant-antoni","ventas","pueblo-nuevo","cuatro-caminos","la-marina-de-port","la-nova-esquerra-de-leixample","porta","sants","el-poble-sec","provencals-del-poblenou","el-camp-den-grassot-i-gracia-nova","torrefiel","el-baix-guinardo","el-besos-i-el-maresme","la-guineueta","les-roquetes","nou-moles","casco-historico-de-vicalvaro","el-raval","las-aguilas","los-rosales","canillas","torrero","el-parc-i-la-llacuna-del-poblenou","la-maternitat-i-sant-ramon","centro","navas","verdun","aiora","casco-historico","penagrande","lhort-de-senabre","san-isidro","sant-gervasi-galvany","el-fort-pienc","vista-alegre","ciutat-meridiana","orriols","patraix","sants-badal","vara-de-quart","buenavista","el-cabanyal-el-canyamelar","rosas","canyelles","malilla","opanel","palomeras-sureste","canillejas","casco-historico-de-vallecas","el-congres-i-els-indians","el-turo-de-la-peira","la-teixonera","la-vall-dhebron","sant-isidre","santa-eugenia","abrantes","la-font-de-la-guatlla","puerta-del-angel","el-barri-gotic","sant-marcel-li","del-pilar","la-raiosa","los-angeles","oliver-valdefierro","safranar","almagro","bellas-vistas","benimaclet","el-grau","palomeras-bajas","sant-pere-santa-caterina-i-la-ribera") AND fk_id_city_nei= ORDER BY slug_nei (1814)