fix condition check in DatabaseStatements#binds_from_relation