I'm trying to write a custom SQL query like this:
{exp:query sql="
SELECT channel_short_name
FROM what_table_is_it_in
WHERE entry_id = '{embed:entry_id}'"
}
{channel_short_name}
{/exp:query}
It's inside an embed template with an entry_id passed in as {embed:entry_id}. I just need it to output the channel short name for that channel of that entry.
What database table is this in? I can't find it!
I'm trying to replicate the example at the very bottom of this page: http://www.solspace.com/docs/rating/entries/ except I want to get channel_short_name instead of entry title.