New Blog Templates database errors

When both SmartCrawl & New Blog Templates are active in a multisite, and a new site is created in the admin or via the frontend with a NBT template selected, an error similar to the following displays when the form is submitted (can relate to any other plugin active at the time):

"Deletion Error: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'AND option_name != 'affiliate_referred_by' AND option_name != 'affiliate_pai' at line 1 - The template was not applied. (New Blog Templates - While removing auto-generated settings)"