Cannot execute query: SELECT distinct trim(substring_index(place,',',-2)) as myplace, trim(place) as wholeplace, count(place) as placecount, gedcom FROM tng_places WHERE trim(substring_index(place,',',-1)) = "At sea on brig \"Memphis\" 3 days from Havana" GROUP BY myplace ORDER by myplace