get last query in wordpress code example
Example 1: wpdb last query
// Print last SQL query string
echo $wpdb->last_query;
Example 2: wpdb get last query
echo $wpdb->last_query;
// Print last SQL query string
echo $wpdb->last_query;
echo $wpdb->last_query;