select * from banner where (tipoFK='4' OR tipoFK='5') AND DATE(validade) > DATE(NOW()) AND ativo='1' ORDER BY RAND() LIMIT 1Motor de tabela desconhecido 'InnoDB'