I have a query such as SELECT ... FROM table WHERE id IN (?,...?) where there are 100 placeholders. This is a static string in my application, and it fills up to 100 ids. When the number of arguments is < 100 the rest is filled with NULL (which is ignored by MySQL).
Unfortunately I'm getting the following error:
Error 1210: Incorrect arguments to mysqld_stmt_execute
If I reduce the number of placeholders to 50 it works fine. Any idea what could be causing this? The same query works when I run it directly. I'm using MariaDB 5.5.