UPDATE
cscart_lock_keys
SET
expiry_at = UNIX_TIMESTAMP(NOW()) + 30,
token = '4KAcxooBTCA/iFkvP6OPzItQMWngH4ZPId9UI/HsXMM='
WHERE
key_id = '8cee0b9ad928d7000ab3a47412a7427ba05ded93c5ad7809d3bafcfdce4e5549'
AND (
token = '4KAcxooBTCA/iFkvP6OPzItQMWngH4ZPId9UI/HsXMM='
OR expiry_at <= UNIX_TIMESTAMP(NOW())
)