SELECT bannerid FROM `oto_sqban_iplog` WHERE ipaddress='172.71.223.51' AND imgid='456789' LIMIT 1