You're giving this error:
Unknown column 'b.id2' in 'where clause'
Packages.php
include ("config.php");
$tabla2 = mysql_query("SELECT * FROM tb_buyref b, tb_refset r WHERE r.id=".$id." AND b.id2=".$id) or die(mysql_error()); // selecciono todos los registros de la tabla usuarios, ordenado por nombre
while($registro2 = mysql_fetch_assoc($tabla2)){
Could someone help me?