UPDATE
cscart_lock_keys
SET
expiry_at = UNIX_TIMESTAMP(NOW()) + 30,
token = 'drjEkgqEfeQrhpZp0TEAePzrvTEJ7tr75H0VBsRB59Q='
WHERE
key_id = '9349111343d2e390836964bf182328b7c1a07233c5631b54bdd5e22ff84b3b26'
AND (
token = 'drjEkgqEfeQrhpZp0TEAePzrvTEJ7tr75H0VBsRB59Q='
OR expiry_at <= UNIX_TIMESTAMP(NOW())
)