UPDATE
cscart_lock_keys
SET
expiry_at = UNIX_TIMESTAMP(NOW()) + 30,
token = 'iJXbBC5FUtWHyogYjDRsCxXrdcx+AEpweQ8GiRlDOfQ='
WHERE
key_id = '2edc5f65fe963d2efbb7ead4339af133b8a6567f90893c5148308c94618bc694'
AND (
token = 'iJXbBC5FUtWHyogYjDRsCxXrdcx+AEpweQ8GiRlDOfQ='
OR expiry_at <= UNIX_TIMESTAMP(NOW())
)