Romaine Sawyers scored his first goal for Brentford as they beat Queens Park Rangers at Loftus Road for the first time in 52 years.