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 ("alto-da-boa-vista","centro","contry","gamboa","guanabara","jardim-ipe","lins-de-vasconcelos","tabuleiro-do-martins") AND fk_id_city_nei= ORDER BY slug_nei (276)