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 INSTR(STATUS,'ALUGUEL')>0 AND ( ( VLR_ALUGUEL >= 5000 AND VLR_ALUGUEL <= 99999999 ) ) AND ( SUITE=2 ) AND ( VAGAS=1%2C2 )
Error:
Unknown column '2C2' in 'where clause'