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 ("bangu","engenho","mathias-velho","nossa-senhora-das-dores-centro","nova-cidade") AND fk_id_city_nei= ORDER BY slug_nei (240)