Cannot execute query: SELECT distinct trim(substring_index(place,',',-1)) as myplace, trim(place) as wholeplace, count(place) as placecount, gedcom FROM tng_places WHERE gedcom = "T1" AND trim(substring_index(place,',',-1)) LIKE "Å%" GROUP BY myplace ORDER by myplace