SELECT * FROM noticies AND tipus='fixa' AND (home=1 or territorial LIKE '%Federació%') AND comite LIKE '%Ă rbitres%' AND (datades IS NULL OR datades <= getdate()) AND (datafi IS NULL OR datafi >= getdate()) AND (Year(data)=2018 OR Year(data)=2017 OR Year(data)=2016) ORDER BY 99999-Prioritat, 99999-Id
Error Microsoft OLE DB Provider for ODBC Drivers: -2147217900

[Microsoft][ODBC SQL Server Driver][SQL Server]Sintaxis incorrecta cerca de la palabra clave 'AND'.