I faced this problem & spent 1 day working on it, finally I found the cause: SQL statement should not be empty (I mean whole sql statement, not part of it).
You may place it inside a conditional statement, a loop or whatever, sql statement may be empty.
This sqlite error is misleading because its vague.
You may place it inside a conditional statement, a loop or whatever, sql statement may be empty.
This sqlite error is misleading because its vague.