the problem is the "TABLE_PRODUCTS_TO_CATEGORIES". Is this a variable? if so, it should be preceded with a "$" sign:
That's my best guess as to your intent, without further context, i can't really tell what you're trying to do with TABLE_PRODUCTS_TO_CATEGORIES.