SELECT bannerid FROM `oto_sqban_iplog` WHERE ipaddress='108.162.246.87' AND imgid='666666' LIMIT 1