par Howard Miller.
Why do you have a table in your database called '3'?
The replace function is a bit crude. It simply grabs all the tables in the database - skips a few particularly ones that have been 'blacklisted' - and then runs the above statement for every text field.
I would check your database for strangely named tables.