my tables: blocked_peoples and members. In table blocked_peoples column ips = members column signup_ip.
Let's say i wanna block person from accessing my site. I block user by his IP and it too update members table and column banned with 1.
In short, if i update table blocked_peoples (column ips) and it's result found/same as members (column signup_ip) in members table update column banned with 1.
It's possible ? If yes, how sql will look like ?