UPDATE
cscart_lock_keys
SET
expiry_at = UNIX_TIMESTAMP(NOW()) + 30,
token = 'uvBBlBNgPTaTAmZx/5UFmdi/bUfE6MHX0lFTl13Q3YA='
WHERE
key_id = '32e020ca88745bd2a20b864725b709acf874add3596c438be05d24987c03b375'
AND (
token = 'uvBBlBNgPTaTAmZx/5UFmdi/bUfE6MHX0lFTl13Q3YA='
OR expiry_at <= UNIX_TIMESTAMP(NOW())
)