UPDATE
cscart_lock_keys
SET
expiry_at = UNIX_TIMESTAMP(NOW()) + 30,
token = 'a4uCpJ3vTPb3yUk2skCpILvR66+ryLg6PNXD2Y4r84Q='
WHERE
key_id = '83050fbb3685db44031f74823e03451cb0b4934db96c0e4adaf7875a42b4b28e'
AND (
token = 'a4uCpJ3vTPb3yUk2skCpILvR66+ryLg6PNXD2Y4r84Q='
OR expiry_at <= UNIX_TIMESTAMP(NOW())
)