in reply to DBI error

What is the value of $query ?