hello every one i have a result that shows only numbers, normally i use this
$query = "SELECT ua.*, sss.team_id, sss.teams AS teams2, ss.team_id, ss.teams AS teams1, s.team_id, s.teams, a.current_bid, a.current_bid_id, a.id, a.team1, a.title, a.team2, a.ends, a.starts, b.bid, b.balance, b.willwin, b.quantity, b.id As bid_id FROM " . $DBPrefix . "bids b
LEFT JOIN " . $DBPrefix . "useraccounts ua ON (ua.auc_id = b.auction AND ua.user_id = b.bidder)
LEFT JOIN " . $DBPrefix . "auctions a ON (a.id = b.auction)
LEFT JOIN " . $DBPrefix . "sports s ON (s.team_id = b.willwin)
LEFT JOIN " . $DBPrefix . "sports ss ON (ss.team_id = a.team1)
LEFT JOIN " . $DBPrefix . "sports sss ON (sss.team_id = a.team2)
to display the names relating to the numbers but am stuck on this method of mysql
$join_sql .= " LEFT JOIN " . $DBPrefix . "users u ON (u.id = " . $DBPrefix . "useraccounts.user_id) ";
$pull_sql .= ', u.nick';
$join_sql .= " LEFT JOIN " . $DBPrefix . "auctions a ON (a.id = " . $DBPrefix . "useraccounts.auc_id ) ";
$pull_sql .= ', a.id ';
$join_sql .= " LEFT JOIN " . $DBPrefix . "sports s ON (s.team_id = " . $DBPrefix . "useraccounts.willwin) ";
$pull_sql .= ', s.team_id';
i dont seem to know how to introduce it to connect to sports table team_id and display it name “teams”, how do i go about it, thanks