select * from standings where ttCity = 'San Francisco' AND ttName = '49ers' AND ttlUID = 1 group by tttID