debug is not a variable in our config file has not been so in many years
The problem as I see it is you have opage in that query clause. The issue is though that is the most popular pal and the structure is like this
Content visible to verified customers only.
I do not see anywhere you can put that type of code in the formation of the qiuery it simply passes a cat variable if it exists.
How are you getting this error?