There is an error on the SQL command.

SQL:
SELECT COUNT(CODIGO) as n FROM fbz_imoveis imo WHERE VER_WEB='Sim' AND (STATUS = 'VENDA' OR STATUS = 'ALUGUEL' OR STATUS = 'VENDA E ALUGUEL') and OCUPACAO = 'DESOCUPADO' OFERTAS_ESPECIAIS = 'Sim'

Error:
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'OFERTAS_ESPECIAIS = 'Sim'' at line 1