public static function get_model($model, $sql, $table = null) { global $wpdb; $result = $wpdb->get_row($sql); return MPM::model($model, $result, $table); }