ok you mean something like this right ?
OperationalError: near "sql": syntax error
The above exception was the direct cause of the following exception:
ValueError Traceback (most recent call last)
/usr/local/lib/python3.10/dist-packages/llama_index/core/query_engine/jsonalyze_query_engine.py in default_jsonalyzer(list_of_dict, query_bundle, llm, table_name, prompt, sql_parser)
108 except sqlite_utils.utils.sqlite3.OperationalError as exc:
109 print_text(f"Error executing query: {sql_query}")
--> 110 raise ValueError("Invalid query") from exc
111
112 return sql_query, table_schema, results