in reply to fetchall( )

I'm not seeing any connection here so I'm assuming you're doing that prior to this.

Your first line is missing a prepare method and a closing paren.