select id from content where statusid=1 and siteid=1 and id in(select contentid from content_properties where typeid=5 and propertyid =497) order by publisheddate desc limit 50,10;select count(*) totalcount from content where statusid=1 and siteid=1 and id in(select contentid from content_properties where typeid=5 and propertyid =497) order by publisheddate desc