select * from `categories` WHERE Cid='6' and Published = 'Yes'