Skip to content

Commit 7ff75a4

Browse files
committed
selec column AS ID
1 parent bbaa6f8 commit 7ff75a4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

multiloquent-base.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -479,7 +479,7 @@ public function multiloqient_get_post_id_by_meta_key_and_value($meta_key, $meta_
479479
{
480480
global $wpdb;
481481

482-
$return = $wpdb->get_col($wpdb->prepare("SELECT post_id FROM $wpdb->postmeta WHERE meta_key = %s AND meta_value = %s", $meta_key, $meta_value));
482+
$return = $wpdb->get_col($wpdb->prepare("SELECT post_id as ID FROM $wpdb->postmeta WHERE meta_key = %s AND meta_value = %s", $meta_key, $meta_value));
483483
return $return;
484484
}
485485

0 commit comments

Comments
 (0)