select other_city_id as id, distance, keops.geoplaces_cities_distances.important_3 , en from keops.geoplaces_cities_distances, keops.geoplaces where city_id=497865560 and from_important=1 and keops.geoplaces_cities_distances.city_id=keops.geoplaces.id order by en ascArray ( )
Array ( [0] => Array ( [id] => 497882396 [en] => Aachen [important_3] => 1 [asc_3] => 536 [asc_4] => 135374 [asc_5] => 137558 [distance] => 371.593243722049 ) [1] => Array ( [id] => 497860096 [en] => Augsburg [important_3] => 1 [asc_3] => 536 [asc_4] => 135382 [asc_5] => 137540 [distance] => 74.127717169749 ) [2] => Array ( [id] => 497885435 [en] => Berlin [important_3] => 1 [asc_3] => 536 [asc_4] => 135381 [asc_5] => 137526 [distance] => 455.927753299299 ) [3] => Array ( [id] => 497884833 [en] => Bielefeld [important_3] => 1 [asc_3] => 536 [asc_4] => 135374 [asc_5] => 137522 [distance] => 367.340592737046 ) [4] => Array ( [id] => 497884054 [en] => Bochum [important_3] => 1 [asc_3] => 536 [asc_4] => 135374 [asc_5] => 137517 [distance] => 363.203862888457 ) [5] => Array ( [id] => 497882258 [en] => Bonn [important_3] => 1 [asc_3] => 536 [asc_4] => 135374 [asc_5] => 137515 [distance] => 310.474444029310 ) [6] => Array ( [id] => 497884125 [en] => Bottrop [important_3] => 1 [asc_3] => 536 [asc_4] => 135374 [asc_5] => 137512 [distance] => 379.784341649039 ) [7] => Array ( [id] => 497886019 [en] => Bremen [important_3] => 1 [asc_3] => 536 [asc_4] => 135379 [asc_5] => 137508 [distance] => 472.208768303515 ) [8] => Array ( [id] => 497886561 [en] => Bremerhaven [important_3] => 1 [asc_3] => 536 [asc_4] => 135379 [asc_5] => 137507 [distance] => 526.638318684120 ) [9] => Array ( [id] => 497885135 [en] => Brunswick [important_3] => 1 [asc_3] => 536 [asc_4] => 135375 [asc_5] => 137510 [distance] => 368.060892241204 ) [10] => Array ( [id] => 497882670 [en] => Chemnitz [important_3] => 1 [asc_3] => 536 [asc_4] => 135371 [asc_5] => 137502 [distance] => 272.974928305946 ) [11] => Array ( [id] => 497882972 [en] => Cologne [important_3] => 1 [asc_3] => 536 [asc_4] => 135374 [asc_5] => 137380 [distance] => 333.004923828781 ) [12] => Array ( [id] => 497875879 [en] => Darmstadt [important_3] => 1 [asc_3] => 536 [asc_4] => 135377 [asc_5] => 137492 [distance] => 165.462575604332 ) [13] => Array ( [id] => 497884107 [en] => Dortmund [important_3] => 1 [asc_3] => 536 [asc_4] => 135374 [asc_5] => 137477 [distance] => 353.501995677378 ) [14] => Array ( [id] => 497883250 [en] => Dresden [important_3] => 1 [asc_3] => 536 [asc_4] => 135371 [asc_5] => 137476 [distance] => 330.516567693281 ) [15] => Array ( [id] => 497883967 [en] => Duisburg [important_3] => 1 [asc_3] => 536 [asc_4] => 135374 [asc_5] => 137475 [distance] => 380.417708167042 ) [16] => Array ( [id] => 497883634 [en] => Dusseldorf [important_3] => 1 [asc_3] => 536 [asc_4] => 135374 [asc_5] => 137473 [distance] => 363.797563043676 ) [17] => Array ( [id] => 497883100 [en] => Erfurt [important_3] => 1 [asc_3] => 536 [asc_4] => 135368 [asc_5] => 137461 [distance] => 229.491047153182 ) [18] => Array ( [id] => 497884026 [en] => Essen [important_3] => 1 [asc_3] => 536 [asc_4] => 135374 [asc_5] => 137458 [distance] => 371.594395198611 ) [19] => Array ( [id] => 497878130 [en] => Frankfurt [important_3] => 1 [asc_3] => 536 [asc_4] => 135377 [asc_5] => 137451 [distance] => 181.499345515690 ) [20] => Array ( [id] => 497857323 [en] => Freiburg [important_3] => 1 [asc_3] => 536 [asc_4] => 135383 [asc_5] => 137449 [distance] => 219.898626653617 ) [21] => Array ( [id] => 497871764 [en] => Furth [important_3] => 1 [asc_3] => 536 [asc_4] => 135382 [asc_5] => 137442 [distance] => 69.458258387662 ) [22] => Array ( [id] => 497884106 [en] => Gelsenkirchen [important_3] => 1 [asc_3] => 536 [asc_4] => 135374 [asc_5] => 137440 [distance] => 369.809613209880 ) [23] => Array ( [id] => 497884126 [en] => Gottingen [important_3] => 1 [asc_3] => 536 [asc_4] => 135375 [asc_5] => 137431 [distance] => 288.228658555096 ) [24] => Array ( [id] => 497883852 [en] => Hagen [important_3] => 1 [asc_3] => 536 [asc_4] => 135374 [asc_5] => 137423 [distance] => 342.225219609669 ) [25] => Array ( [id] => 497884072 [en] => Halle [important_3] => 1 [asc_3] => 536 [asc_4] => 135370 [asc_5] => 137421 [distance] => 300.067615044163 ) [26] => Array ( [id] => 497886566 [en] => Hamburg [important_3] => 1 [asc_3] => 536 [asc_4] => 135378 [asc_5] => 137420 [distance] => 511.551966474432 ) [27] => Array ( [id] => 497884338 [en] => Hamm [important_3] => 1 [asc_3] => 536 [asc_4] => 135374 [asc_5] => 137418 [distance] => 355.188146963974 ) [28] => Array ( [id] => 497885289 [en] => Hanover [important_3] => 1 [asc_3] => 536 [asc_4] => 135375 [asc_5] => 137417 [distance] => 385.834896065127 ) [29] => Array ( [id] => 497871030 [en] => Heidelberg [important_3] => 1 [asc_3] => 536 [asc_4] => 135383 [asc_5] => 137413 [distance] => 137.739542348947 ) [30] => Array ( [id] => 497867712 [en] => Heilbronn [important_3] => 1 [asc_3] => 536 [asc_4] => 135383 [asc_5] => 137411 [distance] => 91.840502063699 ) [31] => Array ( [id] => 497884148 [en] => Herne [important_3] => 1 [asc_3] => 536 [asc_4] => 135374 [asc_5] => 137407 [distance] => 367.835564100032 ) [32] => Array ( [id] => 497863649 [en] => Ingolstadt [important_3] => 1 [asc_3] => 536 [asc_4] => 135382 [asc_5] => 137394 [distance] => 74.729058486724 ) [33] => Array ( [id] => 497866051 [en] => Karlsruhe [important_3] => 1 [asc_3] => 536 [asc_4] => 135383 [asc_5] => 137389 [distance] => 149.662408056591 ) [34] => Array ( [id] => 497883777 [en] => Kassel [important_3] => 1 [asc_3] => 536 [asc_4] => 135377 [asc_5] => 137388 [distance] => 271.351987994515 ) [35] => Array ( [id] => 497887849 [en] => Kiel [important_3] => 1 [asc_3] => 536 [asc_4] => 135369 [asc_5] => 137384 [distance] => 596.407686402108 ) [36] => Array ( [id] => 497883796 [en] => Krefeld [important_3] => 1 [asc_3] => 536 [asc_4] => 135374 [asc_5] => 137377 [distance] => 382.873518926041 ) [37] => Array ( [id] => 497883839 [en] => Leipzig [important_3] => 1 [asc_3] => 536 [asc_4] => 135371 [asc_5] => 137348 [distance] => 299.835828536896 ) [38] => Array ( [id] => 497883209 [en] => Leverkusen [important_3] => 1 [asc_3] => 536 [asc_4] => 135374 [asc_5] => 137346 [distance] => 338.516855344304 ) [39] => Array ( [id] => 497887168 [en] => Lubeck [important_3] => 1 [asc_3] => 536 [asc_4] => 135369 [asc_5] => 137339 [distance] => 546.132977858311 ) [40] => Array ( [id] => 497871753 [en] => Ludwigshafen [important_3] => 1 [asc_3] => 536 [asc_4] => 135373 [asc_5] => 137336 [distance] => 157.001459097892 ) [41] => Array ( [id] => 497884967 [en] => Magdeburg [important_3] => 1 [asc_3] => 536 [asc_4] => 135370 [asc_5] => 137333 [distance] => 362.021817441485 ) [42] => Array ( [id] => 497877176 [en] => Mainz [important_3] => 1 [asc_3] => 536 [asc_4] => 135373 [asc_5] => 137328 [distance] => 195.950114566600 ) [43] => Array ( [id] => 497871953 [en] => Mannheim [important_3] => 1 [asc_3] => 536 [asc_4] => 135383 [asc_5] => 137326 [distance] => 155.794414113461 ) [44] => Array ( [id] => 497883528 [en] => Monchengladbach [important_3] => 1 [asc_3] => 536 [asc_4] => 135374 [asc_5] => 137309 [distance] => 380.317764078327 ) [45] => Array ( [id] => 497883968 [en] => Mulheim [important_3] => 1 [asc_3] => 536 [asc_4] => 135374 [asc_5] => 137306 [distance] => 375.046138454827 ) [46] => Array ( [id] => 497858364 [en] => Munich [important_3] => 1 [asc_3] => 536 [asc_4] => 135382 [asc_5] => 137305 [distance] => 127.410872355827 ) [47] => Array ( [id] => 497884752 [en] => Munster [important_3] => 1 [asc_3] => 536 [asc_4] => 135374 [asc_5] => 137304 [distance] => 389.026798918976 ) [48] => Array ( [id] => 497883529 [en] => Neuss [important_3] => 1 [asc_3] => 536 [asc_4] => 135374 [asc_5] => 137296 [distance] => 365.985666269552 ) [49] => Array ( [id] => 497871389 [en] => Nuremberg [important_3] => 1 [asc_3] => 536 [asc_4] => 135382 [asc_5] => 137283 [distance] => 69.772368086113 ) [50] => Array ( [id] => 497884025 [en] => Oberhausen [important_3] => 1 [asc_3] => 536 [asc_4] => 135374 [asc_5] => 137279 [distance] => 378.240469723068 ) [51] => Array ( [id] => 497877992 [en] => Offenbach [important_3] => 1 [asc_3] => 536 [asc_4] => 135377 [asc_5] => 137273 [distance] => 175.394910338799 ) [52] => Array ( [id] => 497886064 [en] => Oldenburg [important_3] => 1 [asc_3] => 536 [asc_4] => 135375 [asc_5] => 137270 [distance] => 491.420042094936 ) [53] => Array ( [id] => 497885145 [en] => Osnabruck [important_3] => 1 [asc_3] => 536 [asc_4] => 135375 [asc_5] => 137267 [distance] => 406.066190036934 ) [54] => Array ( [id] => 497884410 [en] => Paderborn [important_3] => 1 [asc_3] => 536 [asc_4] => 135374 [asc_5] => 137259 [distance] => 329.979598732599 ) [55] => Array ( [id] => 497864831 [en] => Pforzheim [important_3] => 1 [asc_3] => 536 [asc_4] => 135383 [asc_5] => 137254 [distance] => 128.811935790169 ) [56] => Array ( [id] => 497885301 [en] => Potsdam [important_3] => 1 [asc_3] => 536 [asc_4] => 135380 [asc_5] => 137249 [distance] => 424.634412145296 ) [57] => Array ( [id] => 497866250 [en] => Ratisbon [important_3] => 1 [asc_3] => 536 [asc_4] => 135382 [asc_5] => 137241 [distance] => 121.297068799428 ) [58] => Array ( [id] => 497884256 [en] => Recklinghausen [important_3] => 1 [asc_3] => 536 [asc_4] => 135374 [asc_5] => 137243 [distance] => 374.705049974387 ) [59] => Array ( [id] => 497883498 [en] => Remscheid [important_3] => 1 [asc_3] => 536 [asc_4] => 135374 [asc_5] => 137240 [distance] => 339.138235984755 ) [60] => Array ( [id] => 497861193 [en] => Reutlingen [important_3] => 1 [asc_3] => 536 [asc_4] => 135383 [asc_5] => 137237 [distance] => 104.894807145367 ) [61] => Array ( [id] => 497887542 [en] => Rostock [important_3] => 1 [asc_3] => 536 [asc_4] => 135376 [asc_5] => 137226 [distance] => 581.666535560489 ) [62] => Array ( [id] => 497869051 [en] => Saarbrucken [important_3] => 1 [asc_3] => 536 [asc_4] => 135372 [asc_5] => 137188 [distance] => 255.339638622510 ) [63] => Array ( [id] => 497883497 [en] => Solingen [important_3] => 1 [asc_3] => 536 [asc_4] => 135374 [asc_5] => 137195 [distance] => 345.562572842493 ) [64] => Array ( [id] => 497863812 [en] => Stuttgart [important_3] => 1 [asc_3] => 536 [asc_4] => 135383 [asc_5] => 137178 [distance] => 94.060965927509 ) [65] => Array ( [id] => 497860494 [en] => Ulm [important_3] => 1 [asc_3] => 536 [asc_4] => 135383 [asc_5] => 137163 [distance] => 71.545651330296 ) [66] => Array ( [id] => 497877842 [en] => Wiesbaden [important_3] => 1 [asc_3] => 536 [asc_4] => 135377 [asc_5] => 137137 [distance] => 202.929650666737 ) [67] => Array ( [id] => 497885336 [en] => Wolfsburg [important_3] => 1 [asc_3] => 536 [asc_4] => 135375 [asc_5] => 137131 [distance] => 386.525157861992 ) [68] => Array ( [id] => 497883676 [en] => Wuppertal [important_3] => 1 [asc_3] => 536 [asc_4] => 135374 [asc_5] => 137128 [distance] => 346.011546412989 ) [69] => Array ( [id] => 497875224 [en] => Wurzburg [important_3] => 1 [asc_3] => 536 [asc_4] => 135382 [asc_5] => 137127 [distance] => 100.430068436846 ) [testArray] => test )