API1054 Can't prepare a static section.

Explanation

A static query was specified for a prepare() function; only dynamic queries can be specified.

User response

Specify a dynamic query for any prepare() function.