UPDATE
cscart_lock_keys
SET
expiry_at = UNIX_TIMESTAMP(NOW()) + 30,
token = 'TPCxppaOExDq98kwb/2MYl1q8HIrXoHw7FpBqf9MOiI='
WHERE
key_id = '11112dfd0f0ffc046eddf4a87c28782b3dc637f9ca39e112c3032027349531b4'
AND (
token = 'TPCxppaOExDq98kwb/2MYl1q8HIrXoHw7FpBqf9MOiI='
OR expiry_at <= UNIX_TIMESTAMP(NOW())
)