0

Trying to do a simple inner join, but can't seem to figure out what is going on. Code is:

SELECT *,
FROM flgop as fl
INNER JOIN newuniverse as new
ON fl.Voters_FirstName =new.FirstName
AND fl.Voters_LastName = new.Last 
AND fl.Residence_Addresses_Zip = new.Zip;

Error message I am getting is:

[Err] 1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'FROM flgop as fl
INNER JOIN newuniverse as new
ON fl.Voters_FirstName =new.Fir' at line 2
rontho1992
  • 116
  • 1
  • 11

1 Answers1

1
SELECT *, <-- This comma is not necessary
FROM flgop as fl
INNER JOIN newuniverse as new
ON fl.Voters_FirstName =new.FirstName
AND fl.Voters_LastName = new.Last 
AND fl.Residence_Addresses_Zip = new.Zip;
Tom Studee
  • 10,316
  • 4
  • 38
  • 42