I have an existing PHP code that queries the db looking for an integer in a column
$result = $wpdb->get_var($wpdb->prepare("SELECT thenumber FROM m