also show query on occuring error. helps for debugging to know which query has problems