UPDATE
cscart_lock_keys
SET
expiry_at = UNIX_TIMESTAMP(NOW()) + 30,
token = 'fbC5/mT5Yuhst1tm/Jo6YRH0m6XHcn1WX5SmrU18wz0='
WHERE
key_id = '3d35a689c417bc30b3289a278df2d092590f02f06021aee2e30b53e12021d482'
AND (
token = 'fbC5/mT5Yuhst1tm/Jo6YRH0m6XHcn1WX5SmrU18wz0='
OR expiry_at <= UNIX_TIMESTAMP(NOW())
)