UPDATE
cscart_lock_keys
SET
expiry_at = UNIX_TIMESTAMP(NOW()) + 30,
token = 'L1HaF2oMDMcWWDZ+lRM0XwXmOCR00KUsTZ6TIzqFNws='
WHERE
key_id = '932b2875f64336d90c1f8979c12a91ba0fce68e0b76399f344d02e1da9d88007'
AND (
token = 'L1HaF2oMDMcWWDZ+lRM0XwXmOCR00KUsTZ6TIzqFNws='
OR expiry_at <= UNIX_TIMESTAMP(NOW())
)