UPDATE
cscart_lock_keys
SET
expiry_at = UNIX_TIMESTAMP(NOW()) + 30,
token = 'OEKR2lHX81N4wi+OWy34ev/ABfsfDx1rDH68sr+mn6I='
WHERE
key_id = '43caba7cd79a4f3b8246d8656b7ecba8ed1067298b29b52b1cb7fb8da01c572b'
AND (
token = 'OEKR2lHX81N4wi+OWy34ev/ABfsfDx1rDH68sr+mn6I='
OR expiry_at <= UNIX_TIMESTAMP(NOW())
)