UPDATE
cscart_lock_keys
SET
expiry_at = UNIX_TIMESTAMP(NOW()) + 30,
token = '3TKpwvfwI/hhYIRRL4XEGzSct7NW9HFAT1gBKLzya5o='
WHERE
key_id = '755f136c5b1d13c5959625bfe78ce155cd25bc1e71204143ee813b3a50c7d0a1'
AND (
token = '3TKpwvfwI/hhYIRRL4XEGzSct7NW9HFAT1gBKLzya5o='
OR expiry_at <= UNIX_TIMESTAMP(NOW())
)