I posted a question earlier- got it fixed but not i have another problem- i have a table with 4 records in it and my sql is only returning three records
I tried two types of join this here one
SELECT items.id, items.link, items.title, items.image, lists.user, lists.dated
FROM lists, items
WHERE lists.user = '506161637'
AND lists.item = items.id
ORDER BY lists.dated;
...and the other:
SELECT *
FROM items
JOIN lists ON items.id = lists.item
WHERE lists.user = '506161637'
LIMIT 0 , 30
the lists table is listed below and it returns the records with 8,6,5
id user item dated
---------------------------------
20 506161637 1 2009-11-19
19 506161637 8 2009-11-19
18 506161637 6 2009-11-19
17 506161637 5 2009-11-18