Ensuring the implicit properties are also checked when validating custom sql queries. refs #443