This PMA_getDefaultSqlQueryForBrowse($db, $table) function is called only if an sql query is not set as input parameters (Post or Get). In that case the remembered query should be displayed for each table. That's why $GLOBALS['default_query'] is set to true here. (I created this global parameter. this value was not used before)