Support » Plugins » NextGen custom query

  • Hi, I am trying to do a custom query search of my wordpress database and pull in data from the NextGen gallery tables. This is my code:


    $mylink = $wpdb->get_row(“SELECT * FROM $wpdb->ngg_gallery WHERE gid = 6”);

    echo $mylink->gid;


    This returns no data. If I try the code with the links table though, it works fine. Where am I going wrong?


  • The topic ‘NextGen custom query’ is closed to new replies.