I'm trying to speed my site up with a few direct queries.
Like:
{exp:query sql="SELECT field_id_16 FROM exp_channel_data WHERE channel_id='4' "} {field_id_16}
{/exp:query}
What query will I need to restrict these entries to a certain category? I'll probably need to join exp_category_posts?