             $(window).mousemove @handle_mousemove
             $(window).mouseup @handle_mouseup
             $(window).mousedown @handle_mousedown
-            @id_execution = 0
             @keep_suggestions_on_blur = false
 
             @render()

        # Function triggered when the user click on 'more results'
        show_more_results: (event) =>
            event.preventDefault()
            @skip_value += @current_results.length
            try
                @current_results = []

                # If there are more results to show, we had to buffer one row, so we add that one extra row to the current results
                @current_results.push @extra_row
                @extra_row = undefined

                @start_time = new Date()

                @id_execution++
                get_result_callback = @generate_get_result_callback @id_execution
                @state.cursor.next get_result_callback
                $(window).scrollTop(@$('.results_container').offset().top)
            catch err
                @toggle_executing false
                # We print the query here (the user just hit `more data`)
                @results_view.render_error(@query, err)

        abort_query: =>
            if @state.cursor?
                @state.cursor.close()
            @driver_handler.close_connection()
            @id_execution++
            @toggle_executing false

        # Function that execute the queries in a synchronous way.

            
            # Execute the query
            try
                @state.query_result?.discard()
                # Separate queries
                @non_rethinkdb_query = '' # Store the statements that don't return a rethinkdb query (like "var a = 1;")
                @index = 0 # index of the query currently being executed
