UPDATE
cscart_lock_keys
SET
expiry_at = UNIX_TIMESTAMP(NOW()) + 30,
token = 'nMDnZ1CpFH6ODk/MffMEeQD7mM3YHR9CxO1o1YjDR+4='
WHERE
key_id = '4b7c4abfc66bea0013f5f26e64eab44f58a3487bb9ba4926dd79422b2ae8d061'
AND (
token = 'nMDnZ1CpFH6ODk/MffMEeQD7mM3YHR9CxO1o1YjDR+4='
OR expiry_at <= UNIX_TIMESTAMP(NOW())
)