Improve query_not_found error message

Include the name of the query that wasn't found!