thebarerider makes good points. Your ride is short enough to keep you from getting properly warmed up. Gearing is key, too. If you're riding a gear too large and your cadence drops below, say, 75 rpm you're putting too much stress on your knees. Slip down a couple gears and spin the pedals.