Fix bug with memorial extended text SQL