You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'ERROR: SELECT list_id FROM SC_product_scenario_categories WHERE categoryID IN (N' at line 1
ERROR: SELECT list_id FROM SC_product_scenario_categories WHERE categoryID IN (NOT_AN_ARRAY_PLACEHOLDER_0)