Unclear error in SQLLITE

Discuss about plugins that don't have a dedicated forum
Post Reply
Posts: 14
Joined: Fri Mar 15, 2019 2:35 pm

Unclear error in SQLLITE

Post by zenzizenzizenzic » Sun Mar 31, 2019 5:33 pm

I'm running the following code:

Code: Select all

  local statement= db:prepare([[SELECT author_id FROM item_author WHERE item_id=(:a)]])
I keep getting the following error:

Code: Select all

Misuse of function!
Can someone explain exactly what the error is?

Thank you!

(Data is in the DB, and results exist for the query.)

User avatar
Posts: 3284
Joined: Fri Feb 12, 2010 2:33 pm
Location: Germany

Re: Unclear error in SQLLITE

Post by airsoftsoftwair » Tue Apr 02, 2019 10:15 pm

Try sending a PM to lazi. He is the SQL expert here...

Post Reply