xxxselect id, es, asc_3, asc_6, geotype_id from keops.geoplaces where id and (asc_6 in (497957046,497957050,497957171,497957174,497957237,497957365,497957380,497957503,497957559,497957608,497957649,497957992,497958099,497958136,497958138,497958247) ) and important_6=1 and (geotype_id!=9 and geotype_id!=153 and geotype_id!=154 and geotype_id!=155) order by important_1 DESC, important_2 desc, important_3 desc, rand() limit 30 Array ( )