$query = "select id_code, title, author, html_hyperlink, entry_date, isbn, ddc, dewey_class, lcc,book_details, language, physical_description, discard_ind from books_main where $sort_by = '$id_code' order by $sort_by";