In short, there is no absolute number limit on the amount of parameters that can be run in a single query. The limit has more to do with the characters and how the values are encoded in the database. If there are too many characters and the SQL cannot be run, then you will produce this error.