UPDATE
cscart_lock_keys
SET
expiry_at = UNIX_TIMESTAMP(NOW()) + 30,
token = 'Oq2I9uju8Q3kahVfFk8c2iBsBAmRVt71RSd1uVnFduQ='
WHERE
key_id = 'eb60de0e8df38ad531d22f11030fe5169740a0b2607e452a5f70e3fd7d3fe6d6'
AND (
token = 'Oq2I9uju8Q3kahVfFk8c2iBsBAmRVt71RSd1uVnFduQ='
OR expiry_at <= UNIX_TIMESTAMP(NOW())
)