Found error in the error handling in mysql for collections.