SQL Code:
SELECT
articles_tbl.ArticleID,
articles_tbl.Title,
articles_tbl.Date,
articles_tbl.Thumb,
articles_tbl.Author,
articles_tbl.Views,
SUBSTRING_INDEX(articles_tbl.Text, '?', 1) TEXT,
categories_tbl.Private
FROM
categories_tbl
INNER JOIN
articles_tbl
ON (
articles_tbl.CatID=categories_tbl.CatID
)
WHERE
articles_tbl.Active=1
ORDER BY
articles_tbl.Date
DESC LIMIT 5
this should do. For more information about SUBSTRING_INDEX, have a look at this page:
http://dev.mysql.com/doc/refman/5.0/...ubstring-index
PS: you don't have to wrap the tablenames and fieldnames in `, you only have to do so when the names are reserved keywords (but you should avoid using such names)