Yes, the second one is the one you want. The purpose of running a vent thru the light is to reduce the heat the lamp produces, and your first example does not do that. its defeating the purpose, and will help very little in getting the temps down.

keylime