Added logs to errcode 9 bad table joins