select advance_post.post_id as postId,advance_post.post_name as postName,
SUBSTRING(post_summary FROM 1 FOR 200) as postCont,advance_post.post_views as postViews,advance_post.post_type_id as postType,display_style as catDisplayStyle ,
advance_post_cat.advance_name as catName, advance_post.post_datetime
as postDate from advance_post,
advance_tags,advance_post_tags,advance_post_cat,user_profile
where advance_post.post_id=advance_post_tags.post_id and advance_post_tags.tag_id=advance_tags.tag_id
and advance_post.post_type_id=advance_post_cat.acat_id and advance_tags.tag_name like '% Roll%' and advance_post_cat.domain_id=100
and advance_post.post_active =1 and advance_post_cat.active=1 and user_profile.profile_id=advance_post.posteter_id limit -10,10 ERROR [512] database:: 1:: connResource id #47cc+
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '-10,10' at line 8 :: in file /home/nef10001/public_html/sidlite/html/includes/classes/db.php :: at 97