wpdb last_query, last_result, last_error

There are times that you wanted to print the exact query itself or query result right after it is executed. Use following wpdb class variables to…