Many DBMS don't allow a query like
SELECT * FROM table WHERE col IN (...)
with more than 1,000 values in the list. Maybe it is possible to split it up using chunks of less than 1,000 values:
SELECT * FROM table WHERE col IN (...) OR col IN (...)
or
SELECT * FROM table WHERE col IN (...)
UNION
SELECT * FROM table WHERE col IN (...)
(Although it would not make sense and is unlikely to work).
Otherwise, you should store your values in a temporary table and use a JOIN instead. Where do you get your 1,200 codes from -- they don't happen to be in the same database? :)