UPDATE
cscart_lock_keys
SET
expiry_at = UNIX_TIMESTAMP(NOW()) + 30,
token = 'GMCz2EYY2Ptdiz0zZj/MXqLoyXnQu/Vd/QOWnNJ2DT8='
WHERE
key_id = '119b178f1a4d0619c74f2e104b19922dd224d45364ea59c716abfd7c357bebae'
AND (
token = 'GMCz2EYY2Ptdiz0zZj/MXqLoyXnQu/Vd/QOWnNJ2DT8='
OR expiry_at <= UNIX_TIMESTAMP(NOW())
)