UPDATE
cscart_lock_keys
SET
expiry_at = UNIX_TIMESTAMP(NOW()) + 30,
token = 'n/sn7paxR11cGAsbeK2Fb7l5uoTuSlFZ9pPYkcSbH1Q='
WHERE
key_id = '0bc2ff8a1002eb894069dd7254db036203c725c83ba2ba5b69967fafe964815c'
AND (
token = 'n/sn7paxR11cGAsbeK2Fb7l5uoTuSlFZ9pPYkcSbH1Q='
OR expiry_at <= UNIX_TIMESTAMP(NOW())
)