Ver original$consulta="select * from clientes as Cinner join Agentes as A on C.id_agente = A.id_agentewhere nick_agente = '".$_SESSION["k_username"]."' ";