There is an error on the SQL command.
SQL:
select sql_cache COUNT(CODIGO) as n FROM fbz_imoveis imo WHERE VER_WEB='Sim' AND (STATUS = 'VENDA' OR STATUS = 'ALUGUEL' OR STATUS = 'VENDA E ALUGUEL') AND ( ) AND ( VAGAS=1 ) AND AREA_PRIVATIVA>0 AND ( ( AREA_PRIVATIVA>=0 and AREA_PRIVATIVA<=60 ) )
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 ') AND ( VAGAS=1 ) AND AREA_PRIVATIVA>0 AND ( ( AREA_PRIVATIVA>=0 and AREA_PRIV' at line 1