##### types #####
asyncpg.exceptions.PostgresSyntaxError
##### str(exc) #####
syntax error at or near "AND"
##### traceback #####
Traceback (most recent call last):
  File "<repo>\scripts\dev\capture_sql_errors.py", line 395, in raw_run
    asyncio.run(a_pg())
    ~~~~~~~~~~~^^^^^^^^
  File "<home>\AppData\Roaming\uv\python\cpython-3.13.7-windows-x86_64-none\Lib\asyncio\runners.py", line 195, in run
    return runner.run(main)
           ~~~~~~~~~~^^^^^^
  File "<home>\AppData\Roaming\uv\python\cpython-3.13.7-windows-x86_64-none\Lib\asyncio\runners.py", line 118, in run
    return self._loop.run_until_complete(task)
           ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^
  File "<home>\AppData\Roaming\uv\python\cpython-3.13.7-windows-x86_64-none\Lib\asyncio\base_events.py", line 725, in run_until_complete
    return future.result()
           ~~~~~~~~~~~~~^^
  File "<repo>\scripts\dev\capture_sql_errors.py", line 364, in a_pg
    await conn.execute(sql, *params)
  File "<home>\AppData\Local\uv\cache\archive-v0\fsATR2No33hPH-TM9OZfe\Lib\site-packages\asyncpg\connection.py", line 377, in execute
    result = await self._protocol.query(query, timeout)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "asyncpg/protocol/protocol.pyx", line 341, in query
asyncpg.exceptions.PostgresSyntaxError: syntax error at or near "AND"
