The validation column in the related_subform table is INT, there's a %s as a db_query parameter - threw and error for me in MySQL 5

Patch attatched. I wonder what percentage of patches are 1 character changes ;)