UPDATE
cscart_lock_keys
SET
expiry_at = UNIX_TIMESTAMP(NOW()) + 30,
token = '2yG/9ZSw5bf5JiVNuQha2evketSN50gP87a/R5985DY='
WHERE
key_id = 'c651b3d5c74f64e0bff15b522f2bdbeef7ccc17dd1cd2aa0bd28b28bbe481cf2'
AND (
token = '2yG/9ZSw5bf5JiVNuQha2evketSN50gP87a/R5985DY='
OR expiry_at <= UNIX_TIMESTAMP(NOW())
)