I just started having some problems with some scripts that use prepared sql statements. The error I get is something like "check the manual that corresponds to your MySQL server version for the right syntax to use near ''0', '18''" when the statement ends with "LIMIT ?, ?".
The solution I found is to add "{'TYPE' => SQL_INTEGER()}" as a third parameter to the bind_param() call. The really weird part is that this only seems to affect placeholders after a LIMIT.
The MySQL server is the same version it always was, any ideas why this is happening?