UPDATE
cscart_lock_keys
SET
expiry_at = UNIX_TIMESTAMP(NOW()) + 30,
token = '0+sabxpGmbm+Y6fZkv912iYk5q+DCDbz5cR0NFBbRVI='
WHERE
key_id = '62ec0afcb14084c33abbd153e13af12191cc91392265829102fd9af6cbd76bb4'
AND (
token = '0+sabxpGmbm+Y6fZkv912iYk5q+DCDbz5cR0NFBbRVI='
OR expiry_at <= UNIX_TIMESTAMP(NOW())
)