Your query always returns one row, so asking why it doesn't limit it to 30... makes little sense.
Well, if it was a count() I would agree with halojoy, now there might be a reason for executing a query like this, depending on what's in sum.
But anyway, to answer the question I believe you wanted answered
SELECT sum(vizite) FROM (SELECT visite FROM table LIMIT 30) AS t