What am I doing wrong? Seriously confused.
SELECT *
FROM photos
WHERE user_id = 1
JOIN photos_albums ON photos_albums.photo_id = photos.id
The context is, I have a table to store photos, and another table to store photo albums (not shown). I also have a cross-referencing table photos_albums
to store which photos are in which albums.
I get given a Syntax Error. eh?
Thanks!
Jack