There is an error on the SQL command.
SQL:
SELECT DISTINCT CATEGORIA, CODIGO_CATEGORIA FROM fbz_imoveis WHERE VER_WEB='Sim' AND CATEGORIA<>'' and instr(STATUS,'ALUGUEL')>0 /*GROUPBY*/ ORDER BY CATEGORIA
Error:
Access denied for user ''@'localhost' (using password: NO)