in reply to error in sql query while using DBI

but its not working

So what's the behaviour you observe, and what would you expect?