portal.php de olan son yorumlar sql kodu galiba bu bunu sade haline nasıl getiricez
Sadeden kastım table_prefix t.???? u.??? yerlerine neler yazılacak
Sadeden kastım table_prefix t.???? u.??? yerlerine neler yazılacak
Kod:
$query = $db->query("
SELECT t.tid, t.fid, t.uid, t.lastpost, t.lastposteruid, t.lastposter, t.subject, t.replies, t.views, u.username
FROM ".TABLE_PREFIX."threads t
LEFT JOIN ".TABLE_PREFIX."users u ON (u.uid=t.uid)
WHERE 1=1 {$excludeforums}{$tunviewwhere} AND t.visible='1' AND t.closed NOT LIKE 'moved|%'
ORDER BY t.lastpost DESC
LIMIT 0, ".$mybb->settings['portal_showdiscussionsnum']
);
