UPDATE
cscart_lock_keys
SET
expiry_at = UNIX_TIMESTAMP(NOW()) + 30,
token = 'yk2FX+dbVpqb3djSlecoFXmC1gCN4MiUr0MA7XrJ2QE='
WHERE
key_id = '53f681523c792a8a8f753b05aa60c239657e7f648bf37aebc63dd4670216221d'
AND (
token = 'yk2FX+dbVpqb3djSlecoFXmC1gCN4MiUr0MA7XrJ2QE='
OR expiry_at <= UNIX_TIMESTAMP(NOW())
)