select * from ad_info where categories='' and city ='' ORDER BY item_id DESC LIMIT 0 , 10SELECT COUNT(*) AS numrows FROM ad_info where categories='' and city =''