Jump to content

Inner Join SELECT statement problem


BigTime

Recommended Posts

Im getting the error: Unknown column 'data2.name' in 'field list' in this SELECT query and I'm at a loss.... :shrug:

 

The table exists the column exists, I can SQL query

 

SELECT refreport.user, refreport.division, refreport.hometeam, refreport.awayteam, refreport.week, refreport.homeleague, refreport.homeconference, refreport.awayconference, data2.name, data2.email FROM refreport INNER JOIN data on data2.user=refreport.user WHERE gameid='$id'";

 

Thanks in advance!

Link to comment
https://forums.phpfreaks.com/topic/267531-inner-join-select-statement-problem/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.