I'm using the MTSQL plugin and need to know - How do you limit a query in the MTSQLEntries tag to a category? Apparently ( and maybe this is just our database ) there are no category_id's in the entry_category_id field, so adding "where entry_category_id=nnn" has no effect even though there are in fact categories being used.
Thanks!
Reported on Movable Type 4.2
The entry_category_id column is vestigial. It's a column that isn't currently used by MT. All category relationships are in the mt_placement table. So you want a query like this:
And just join against mt_entry if you need to further limit the selection based on other entry fields or if you want to sort by the publish date, etc.