UPDATE
cscart_lock_keys
SET
expiry_at = UNIX_TIMESTAMP(NOW()) + 30,
token = 'J67o1jwwXmS5L9LXGQ/PGC6iW+e2OGbG7Uo9arXMq9M='
WHERE
key_id = '5f7176b06b18cd345dbd23cae229cb4e6dad49e043a070f731090c46243c4552'
AND (
token = 'J67o1jwwXmS5L9LXGQ/PGC6iW+e2OGbG7Uo9arXMq9M='
OR expiry_at <= UNIX_TIMESTAMP(NOW())
)