UPDATE
cscart_lock_keys
SET
expiry_at = UNIX_TIMESTAMP(NOW()) + 30,
token = 'Wtah5egRZ84cNVWrAxfg/+FEOta77ShpoLA8ufSJJ60='
WHERE
key_id = '3b3a40d9fdce40302a1cb6c6e49b2ceca919a5462aafca8f0346d3c8436d37d2'
AND (
token = 'Wtah5egRZ84cNVWrAxfg/+FEOta77ShpoLA8ufSJJ60='
OR expiry_at <= UNIX_TIMESTAMP(NOW())
)