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 count(*) as `c` FROM ?#PRODUCTS_TABLE WHERE `brand` in(NOT_AN_ARR' at line 1
ERROR: SELECT count(*) as `c` FROM ?#PRODUCTS_TABLE WHERE `brand` in(NOT_AN_ARRAY_PLACEHOLDER_0) and `enabled`=?