rename PMA_getQueryFromSelected function