SELECT bannerid FROM `oto_sqban_iplog` WHERE ipaddress='18.97.9.171' AND imgid='58512' LIMIT 1