Escape custom field names in SQL select. Closes #45