각쿼리마다 _error_number() 가 있으면 <span ms;="" line-height:1.6"="">last_query() 로 찍으면 될것 같네요. 아니면 롤백시 last_query() 찍어도 될듯 한데.. 안해봐서 모르겠네요. ^^