I am trying to get custom data from my wordpress database, but my knowledge in sql ist that good. Could some one help me?
Please look at my example.

I am trying to echo out image names (filename) from table (wp_ngg_pictures) that have galleryid = 2
So in this example I would get the list of :
- bildes-140.jpg
- bildes-127.jpg
- bildes-133.jpg
- bildes-152.jpg
- And so on….
Assuming your using PHP all you would do is connect to your database and then do something like this
If you wanted more specific results it would be a little different.
Fixed the errors.. sorry bout that, still learning myself.