Not OP, but what query is needed to show errors?