log sql on operational error

I found this handy when debugging an issue with a missing field...