Yes, the LAST one (executed).i can get var_dump output from all the plugins if only the last one has exit; row.
If your plugin with the exit is executed before the one without you'll only get the infos from the first one because exit will stop all (and I don't know in which order your plugins are executed)
So you have to try both versions:
plugin1 with var_dump + exit, plugin2 only var_dump
plugin1 only var_dump, plugin2 var_dump + exit
"more specific about point2"
check if '{prefix_tooted_vormiremont___id_raw}' is empty
eg.
Code:
$myid = '{prefix_tooted_vormiremont___id_raw}';
//var_dump($myid);exit //to see what you really get
if ($myid != '')
{
do the query stuff
}