UPDATE
cscart_lock_keys
SET
expiry_at = UNIX_TIMESTAMP(NOW()) + 30,
token = 'i26j1/rexca1lZH+1eRPLkIFzYKM1BR/nd4nZ9uoe1g='
WHERE
key_id = '43a6d9096c005c63e91265492a5ca036e3bc448ba1f5de57ea5bd399e85b5971'
AND (
token = 'i26j1/rexca1lZH+1eRPLkIFzYKM1BR/nd4nZ9uoe1g='
OR expiry_at <= UNIX_TIMESTAMP(NOW())
)