That too cannot work.
When selecting data from more than one table you MUST link ALL the tables through the WHERE clause. You should be able to 'walk' accross the relations from the first table to every other table.
Extremely bad:
SELECT something
FROM table1, table2, table3
WHERE foo=bar
because none of the tables are linked at all.
Still bad:
SELECT something
FROM table1, table2, table3
WHERE table1.field1 = table2.field2
because table3 is not linked to any other tables.
Good:
SELECT something
FROM table1, table2, table3
WHERE table1.field1 = table2.field2
AND table2.field3 = table3.field3
Table1 is linked to table2, and table2 is linked to table3.
Also good:
SELECT something
FROM table1, table2, table3
WHERE table1.field1 = table2.field2
AND table1.field1 = table3.field3
Table1 is linked to table2 and table3.
A forum, a FAQ, what else do you need?