Handle WHERE parse errors for JSON and other

TODO: HTML needs to show appropriate error message