-11107: Statement not prepared.

Explanation:

You have called a MaxDB PHP function that can only be used for prepared statements.

User Response:

Use prepared statements or a different function.

See also:

PHP Manual