Prevented wanings for sqls without 'inactive' field.