1054 - Unknown column 'CATEGORY_ID_ON_CS' in 'field list'

INSERT INTO coolsafety_db.products_to_categories (products_id,categories_id,orderby) SELECT cp.products_id, CATEGORY_ID_ON_CS, 50 FROM products p INNER JOIN coolsafety_db.products cp ON p.products_id = cp.source_products_id AND cp.stores_id = 1 WHERE NOT EXISTS (SELECT 1 FROM coolsafety_db.products_to_categories ptc WHERE ptc.products_id = cp.products_id AND ptc.categories_id = CATEGORY_ID_ON_CS)

[TEP STOP]