I should have explained better where to set that option.
In your
/var/ossec/etc/internal_options.conf
look for the line
wazuh_db.debug and set it equal to 1 and restart your manager.
You could also set that option in
/var/ossec/etc/local_internal_options.conf (which is recommended to not lose your configuration on upgrades)
And respect to the query I would like to know if those two attributes are equal or not.
I'm not sure what could be causing that error you shared. You could try without the '.headers on' option and check that the query is surrounded by single quotes and the
component string with double-quotes.