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 ("la-dreta-de-leixample","centro","sant-gervasi-galvany","recoletos","universidad","lantiga-esquerra-de-leixample","abando","embajadores","delicias","la-nova-esquerra-de-leixample","la-vila-de-gracia","les-corts","indautxu","justicia","actur-rey-fernando","castellana","almagro","cuatro-caminos","sant-antoni","goya","los-remedios","la-sagrada-familia","sol","casco-historico","centro-sagrario","hispanoamerica","el-viso","sant-pere-santa-caterina-i-la-ribera","trafalgar","el-raval","sant-francesc","ensanche-diputacion","guindalera","zona-centro","castillejos","santa-catalina-canteras","el-barri-gotic","palacio","tejares-centro-comercial","gaztambide","russafa","el-mercat","prosperidad","eixample-nord","arguelles","centro-norte","sants","vista-alegre","el-putxet-i-el-farro","lista","nueva-espana","pueblo-nuevo","casco-viejo","arapiles","las-fuentes","san-jose","rios-rosas","ciudad-jardin-cercedilla","pacifico","sarria","el-pla-del-remei","alfalfa","san-andres","sant-andreu","aluche","sant-gervasi-la-bonanova","ventas","pere-garau","arrancapins","ciudad-jardin","triana","el-camp-de-larpa-del-clot","el-fort-pienc","san-diego","cortes","el-camp-den-grassot-i-gracia-nova","figares","pinar-del-rey","el-poblenou","guanarteme","buenavista","numancia","zaidin-vergeles","casco-antiguo","las-acacias","palos-de-moguer","casco-historico-de-vallecas","ibiza","aravaca","quintana","simancas","canillas","santutxu","centro-oeste","la-concepcion","la-isleta","penagrande","jaume-iii","castilla","del-pilar") AND fk_id_city_nei= ORDER BY slug_nei (1667)