fix SQL escaping of "release_notes_not_required" query