UPDATE
cscart_lock_keys
SET
expiry_at = UNIX_TIMESTAMP(NOW()) + 30,
token = '+F+7uv9yWMo/IguSWFWEjwit4+0KUM0E7ssDlXM5Pkg='
WHERE
key_id = '4cc88831853a362af583910e0a2def66ecab9f6be1681db57635c0d5de8cb503'
AND (
token = '+F+7uv9yWMo/IguSWFWEjwit4+0KUM0E7ssDlXM5Pkg='
OR expiry_at <= UNIX_TIMESTAMP(NOW())
)