SELECT SQL_CALC_FOUND_ROWS sno, property_id, saleprice, user_code, propertyfor, proptype, sel_dist, sel_loca, locality, post_date, pactive, total_land, saleprice, const_area, bed, bath, furnishing, thumb FROM post_property where pactive > 0 and propertyfor = 'sale' and proptype like '%Residential Land For Sale In Flat For Sale In Flat For Sale In House%' and ( (locality like '%interior/images/chat/js/user-images/profile/ernakulam%' or sel_loca like '%interior/images/chat/js/user-images/profile/ernakulam%' or sel_dist like '%interior/images/chat/js/user-images/profile/ernakulam%') ) ORDER BY sno desc Limit 0, 16