UPDATE
cscart_lock_keys
SET
expiry_at = UNIX_TIMESTAMP(NOW()) + 30,
token = '2+pYvmJ10k0/XRflnlQKOtrWBx65ancwX7qVc5Ozn6M='
WHERE
key_id = '183701cbd14aa752b7a515b8434c8a2d1243f4b33ce3c08591ea34cf2ceb026b'
AND (
token = '2+pYvmJ10k0/XRflnlQKOtrWBx65ancwX7qVc5Ozn6M='
OR expiry_at <= UNIX_TIMESTAMP(NOW())
)