Possible Duplicate:
1052: Column 'id' in field list is ambiguous
I have two tables, and I want to connect the tables by sb_id
(sb_id
is same for two tables). So, I used my query like this:
SELECT Name,
class
FROM student_info,
student_class
WHERE id = 1
AND student_info.sb_id = student_class.sb_id;
And it's showed error:
1052: 'id' in where clause is ambiguous
Another thing,I want to show just a single result,by using "JOIN".