$consulta = "SELECT * FROM topics t INNER JOIN forums f ON t.forum_id = f.id
Ver originalFROM <tabla1> <alias1> INNER JOIN <tabla2> <alias2> ON <alias1>.<clave1> = <alias2>.<clave2>