synchronizing message(query) with the table ordering

bug fix for #4245 initial "Browse" query does not match sorting order.
http://sourceforge.net/p/phpmyadmin/bugs/4245/

Even though remembered sorting order was considered when rendering a table, it wasn't considered when displaying the query related to the table. Added some code to consider it when displaying the query if sorting order is remembered.