Lost the plan_id when reusing $row