UPDATE
cscart_lock_keys
SET
expiry_at = UNIX_TIMESTAMP(NOW()) + 30,
token = '/yeuTAN0G3Ee/xP9kmV5D9BlakuxKmjyD0+028l00ic='
WHERE
key_id = 'ea0115af0c2f6da40cbffba9b3f8f8361179df4f0ae379cac182eca22bf260df'
AND (
token = '/yeuTAN0G3Ee/xP9kmV5D9BlakuxKmjyD0+028l00ic='
OR expiry_at <= UNIX_TIMESTAMP(NOW())
)