in reply to Update while reading Database
Are you attempting to use the same statement handle ($sth) for both queries? You'll need to use a seperate one for each. My only experience is with MySQL and SQL Server, but I have had no trouble doing simultaneous queries with this method.
(And really, the queries are not simultaneous. The first one is over and done with before you begin the loop.)