UPDATE
cscart_lock_keys
SET
expiry_at = UNIX_TIMESTAMP(NOW()) + 30,
token = 'fVeUTcMOlJAPr4BBPxu0OzxYw15Cnn518/aP1B3qAzo='
WHERE
key_id = '853515fdade3494128c58e79290388b6470599ff080d60c40679da76e8bb20e7'
AND (
token = 'fVeUTcMOlJAPr4BBPxu0OzxYw15Cnn518/aP1B3qAzo='
OR expiry_at <= UNIX_TIMESTAMP(NOW())
)