Forum Moderators: open
This thread recommends not combining comma joins and left joins as I am with my search. The statement I have is below:
mysql_select_db($database_master_user, $master_user);
$query_getAssignment = "SELECT *, projects.projectName FROM assignments LEFT JOIN projects USING (projectID) WHERE assignments.empNo =".$employeeNo . " ORDER BY assignments.projectID";
Can someone help me phrase this so that I do not need to mix comma and inner joins? Or does anyone know of another way around this problem?
Thanks in advance,
Can you paste the full error, where it repeats the SQL statement. I want to see how MySQL is translating the $employeeNo variable.