-- [VARS] (SELECT @last_id := 0, @pid := 0, @npid := NULL, @cnt:=0) AS var