UPDATE
cscart_june_setuplock_keys
SET
expiry_at = UNIX_TIMESTAMP(NOW()) + 30,
token = 'Rqn7GOCx2fxXY67sQJtTPhdIZXOQXKgsSbIILYf+wmA='
WHERE
key_id = '93820dd5b2ebd52e1195781003270a6a87b8504e2ccf874d98bdad9ec735eb2f'
AND (
token = 'Rqn7GOCx2fxXY67sQJtTPhdIZXOQXKgsSbIILYf+wmA='
OR expiry_at <= UNIX_TIMESTAMP(NOW())
)