Al-Qaeda planned to unleash a lethal gas in New York City's subway system in 2003 and came within 45 days of carrying out the attack when the group's No 2 called off the operation, according to a new book excerpted in next week's edition of Time magazine.