Code: Select all
local statement= db:prepare([[SELECT author_id FROM item_author WHERE item_id=(:a)]])
statement:bind_names({a=key})
statement:dostep()
authors=statement:get_values()
Code: Select all
Misuse of function!
Thank you!
(Data is in the DB, and results exist for the query.)