Hi FFI,
Looking at the query you provided you are missing a lot of info to get what you want. You need to include your channel tables in order to check if a member posted something. To check if a member posted something you need to run something like the following:
{exp:query sql="SELECT m.member_id,cd.channel_id,ct.title
FROM exp_channels c, exp_channel_data cd, exp_channel_titles ct, exp_members m
where c.channel_name = 'PutYourChannelNameHere'
and cd.channel_id = c.channel_id
and ct.channel_id = cd.channel_id
and ct.entry_id = cd.entry_id
and m.member_id = ct.author_id
and ct.status = 'open'"}
{title}
...
{/exp:query}
There are a few things you need to do with the query above:
1) Check the channel table for the field ids where your data is getting stored and include them in your query if you want to use them on your html page. This part is a little tricky and you need to be familiar with mySql databases and tables to do this. I would use something like phpMyAdmin to make it easier for you.
2) Put your channel name where it says “PutYourChannelNameHere”
3) Change the status from “open” to what ever you are using if different in your situation.
4) If you need to check for a specific member to see if they posted anything you need to include the following in the query filter:
and m.memeber_id = {SomeID}
Replace the {SomeID} with the members ID you want to check. If you just need all members who posted then the query above will give you exactly that minus your custom fields you created.
5) Put an “order by” if you need to sort it a certain way.
I hope that helps.
Mike