How does $wpdb->get_var work with offset?

You must specify values for column_offset and row_offset. For example:

 <?php $wpdb->get_var( null, 5, 0 ); ?> 

Will return “Hello World” (see attached image) But for that to work you had to have a previous query like this:

 <?php $wpdb->get_var( "SELECT * FROM $wpdb->posts" ); ?> 

result set from previous query

tech