Added meaningful error response for bad SQL select clause
Minor string cleanup