in reply to Perl DBI execute statement

There is a lot of other things you are not telling us. like what is line 199? (is it $feed_table_ext_results->fetchrow_array?) What is in $time. Are you sure that this line $feed_table_ext_idcode->fetchrow_array() is actually returning any rows? If it does not then $feed_table_ext_results->execute(@row); <never gets executed

You need to also realize that the $feed_table_ext_idcode->fetchrow_array loop executes over and over for each $id you get after $time leaving only the results for the last id_code selections available in $feed_table_ext_results->fetch... but that does also assume it returns any rows

An the fact that there are two errors listed for 199 seems to suggest that that statement is inside some sort of loop you may not be showing us

and you should look up how to use $feed_table_ext_results->finish, i suspect you will need to insert somethng like that soon