I have this query which prints 10 articles,
It is built from 3 tables:
articles (articles data),
pages (Whice page/channel the article belongs to),
media (image for the article)
Sometimes the meidafileid in media has the value 0,
and that causes problems when printing because there are no mid in media with 0.
How can I do the query to print the article even if mediafileid = 0
here is my query sofar, hope anyone can help,
SELECT a., p., m.* FROM articles a, pages p, media m WHERE a.pageid = p.pid AND a.mediafileid = m.mid AND a.pageid = 1 AND a.published = 1 ORDER BY pubdate DESC LIMIT 10
regards Thomas A