SELECT id, lat, lng, titel, (
6368 * SQRT(2*(1-cos(RADIANS(lng)) *
cos(0.20214228863673) * (sin(RADIANS(lat)) *
sin(0.84011598077672) + cos(RADIANS(lat)) *
cos(0.84011598077672)) - sin(RADIANS(lng)) * sin(0.20214228863673)))) AS entfernung
FROM bilder
HAVING entfernung <= 25
ORDER BY entfernung
Umgebungskarte