UPDATE
cscart_lock_keys
SET
expiry_at = UNIX_TIMESTAMP(NOW()) + 30,
token = '+VU/GkR1q74p7qRx1yki8l521eCHx5X/CtTGp5NqKWI='
WHERE
key_id = 'b3eb55916c7df0e7a900d3e0ff5a5be23c24f3cdd62d55a07f10361bd6dd5e7f'
AND (
token = '+VU/GkR1q74p7qRx1yki8l521eCHx5X/CtTGp5NqKWI='
OR expiry_at <= UNIX_TIMESTAMP(NOW())
)