SELECT DISTINCT cmsWebPage.*, cmsContent.contentID, cmsContent.refTableName,cmsContent.htmlText,cmsContent.plainText,cmsContent.displayPageID from cmsWebPage, cmsContent where cmsWebPage.webPageID=cmsContent.refID and cmsWebPage.webPageID='23'