Attribute Flex Header Error

Hello!

I was adding an icon in flex headers based on if an attribute existed in the constituent profile. It is an attribute that we created to assign a constituent profile to a specific company so that when users who do not work for that company come across it, a stop sign icon will appear in the Flex Header for them to know that the constituent doesn't "belong" just to them and to proceed with caution when making edits to general information. The attribute itself is generated through the Manage Attributes utility with these settings:

It's set to run daily so that if someone processes a gift for that company or purchases a ticket, the attribute will be added and then the stop sign will be generated for those who don't work for that company.

When I tried it out in Test, it worked correctly and had been working correctly in Live until lately. Now, the stop sign is appearing in the Flex Header even if the attribute doesn't exist for any company. Here is an example when I'm logged in for a user who has that flex header and even if I was in Sys Admin, the constituent doesn't have any attributes:

I can't quite figure out where the disconnect is. I used the code that was in the Flex Header Recipe Book for attributes:

SELECT TOP 1 key_value FROM VXS_CUST_KEYWORD WHERE customer_no = @customer_no AND keyword_no = 525,526,527,528,529,530,531,532,533,534,535 ORDER BY create_dt DESC

Anyone have any ideas?

Thanks,

Katie Cullen