How to handle sql with Custom List Table Example

$data = $wpdb->get_results($sql, ARRAY_A);

Adding ARRAY_A forces get_results to return an associative array.

Leave a Comment