UPDATE
cscart_lock_keys
SET
expiry_at = UNIX_TIMESTAMP(NOW()) + 30,
token = 'FEUuyquWnveM2Ei8qBkKgeFufe9+KLY1U6L3Cde0mUc='
WHERE
key_id = '1275bf84cb680cc6beef046762aeb44acd415aad0fc7c65fb92daf9ec5e5b3c3'
AND (
token = 'FEUuyquWnveM2Ei8qBkKgeFufe9+KLY1U6L3Cde0mUc='
OR expiry_at <= UNIX_TIMESTAMP(NOW())
)