Comment Panel highlighted red on client server

I'm working in the designer where gateway is hosted on a comment panel, but on my client it is red and the log says client is missing required permissions.

I am using a named query and I previously Enabled Legacy Database Access which fixed the issue however this cannot be a permanent fix and it creates security risks. Does anyone know of any alternative fixes to ensure the comment panel works appropriately in the client?

Thanks

Your diagnosis indicates you still have a regular query binding where you need a named query binding. Look closer.