There is slight misinformation here. The planets are not going to be in a straight line, rather the planets will be almost in the same ecliptic plane as that of the earth giving an illusion of the planets being in a straight line. It will be visible through most of January!