Access: Admin
Total Posts: 1395
Joined: 2006-05-19
My mistake, this should work
Code:
$newsarticles = DataAccess::fetch(sprintf("SELECT title, story, shortstory, id FROM %s WHERE id IN (SELECT storyid FROM %s WHERE catid = ?) ORDER BY id DESC", NEWS_ARTICLES, NEWS_GROUPCATS), $categoryid);