2014-02-13, 05:31 PM
Is there a way to reduce queries of this fetch code??????
$query = $db->query("
SELECT t.*, t.subject AS threadsubject, u.username, u.displaygroup,
t.dateline AS threaddate, t.lastpost AS threadlastpost
FROM ".TABLE_PREFIX."threads t
LEFT JOIN ".TABLE_PREFIX."users u ON (t.lastposter=u.username)
WHERE t.visible = '1' And t.uid = '{$memprofile['uid']}'
GROUP BY t.tid
ORDER BY threadlastpost DESC
LIMIT 0, {$threadlimit}
");