UPDATE
cscart_lock_keys
SET
expiry_at = UNIX_TIMESTAMP(NOW()) + 30,
token = 'ign/Nj5t8ckFQgRbQqeuMmERr0KXCyWhv3zMEdPr3PE='
WHERE
key_id = '11d07442c32f478ec48aa7d93daf13517bce26642fff0007f5c69eeeb54533a9'
AND (
token = 'ign/Nj5t8ckFQgRbQqeuMmERr0KXCyWhv3zMEdPr3PE='
OR expiry_at <= UNIX_TIMESTAMP(NOW())
)