There is an error on the SQL command.

SQL:
SELECT imo.PLACA, imo.CODIGO, imo.CODIGO_CS, imo.CODIGO_CT, cat.CATEGORIA, cat.GRUPO, imo.STATUS AS STATUS, imo.BAIRRO, imo.CIDADE, imo.DORMITORIO AS DORM, imo.SITUACAO, imo.LANCAMENTO, imo.SUITE AS SUITE, imo.VAGAS AS VAGA, imo.SITUACAO, imo.LANCAMENTO, imo.AREA_PRIVATIVA AS AREAP, imo.AREA_TOTAL AS AREAT, imo.DESCRICAO AS DESCRICAO, imo.VLR_VENDA, imo.VLR_ALUGUEL AS VLR_ALUGUEL, imo.VLR_CONDOMINIO, imo.VLR_IPTU, GMAPS_LNG, GMAPS_LAT, imo.EMPREENDIMENTO FROM CADIMO imo LEFT JOIN CADCAT cat ON cat.CODIGO=imo.CODIGO_CT LEFT JOIN CADCLI cli ON cli.CODIGO_C=imo.CODIGO_C WHERE imo.VER_WEB='Sim' AND (imo.STATUS = 'VENDA' OR imo.STATUS = 'ALUGUEL' OR imo.STATUS = 'VENDA E ALUGUEL') AND imo.CIDADE='' AND DESTAQUE_WEB='Sim' and LANCAMENTO='Sim' and imo.STATUS = 'VENDA' ORDER BY RAND() LIMIT 12

Error:
Got error 28 from storage engine