Remove useless FROM and delete useless new lines