UPDATE
cscart_lock_keys
SET
expiry_at = UNIX_TIMESTAMP(NOW()) + 30,
token = 'nLxq0+i2g+/NWIj6vJAwC/LgC97Y4T+IHJShwG2XBxY='
WHERE
key_id = '4210e6251e97bad886e92ee4101d30b89a880b98288cddc1b3d194f849fc1b10'
AND (
token = 'nLxq0+i2g+/NWIj6vJAwC/LgC97Y4T+IHJShwG2XBxY='
OR expiry_at <= UNIX_TIMESTAMP(NOW())
)