SELECT * FROM cities ORDER BY glength(LineStringFromWKB(LineString(GeomFromText(astext(PointFromWKB(POINT(cities.lati,cities.longi)))),GeomFromText(astext(PointFromWKB(POINT(,)))))))*62.13 ASC limit 3