Scusami, avevo sbagliato.
Allora la QUERY ORIGINALE FUNZIONANTE E':
codice:
$sql = "SELECT t.*, u.".$usname." FROM ${prefix}_splattforum_forumtopics t left outer join ".$user_prefix."_users u on t.topic_poster = u.".$usid." WHERE t.forum_id = '$forum' ORDER BY highlight desc, topic_time DESC LIMIT $start, $topics_per_page"; #teo aggiunto order by highlight per bloccare msg in alto
QUELLA CHE MI DA ERRORE E' LA SEGUENTE:
codice:
$sql = "SELECT t.*, u.".$usname." FROM ${prefix}_splattforum_forumtopics t left outer join ".$user_prefix."_users u on t.topic_poster = u.".$usid." WHERE t.topic_time<DATE_SUB(NOW(),INTERVAL 30 DAY) AND t.forum_id = '$forum' ORDER BY highlight desc, topic_time DESC LIMIT $start, $topics_per_page"; #teo aggiunto order by highlight per bloccare msg in alto
MI APPAIONO DEI RISULTATI, MA IN UN ORDINE STRANO! E NON NELL'ORDINE DI ULTIMA RISPOSTA ALLA DISCUSSIONE.