Pagination reloads first page but has proper url

Turns out this line of code I had right above the rest to exclude a specific category from the homepage loop is what caused the issue:

    <?php if (is_home()) {
      WP_Query("cat=-4")
    ;} ?>

techhipbettruvabetnorabahisbahis forumutaraftarium24edusedueduseduseduseduseduseduseduedu