SELECT sms.* from sms where sms.Checked='0' order by sms.Kind_Index Desc
SELECT sms.* from sms where sms.Kind_Delivery_Id ='2' or sms.Kind_Delivery_Id='8'
or sms.Kind_Delivery_Id='16' or sms.Kind_Delivery_Id='400' or sms.Kind_Delivery_Id='900' or sms.Kind_Delivery='0'
order by sms.Kind_Index Desc Limit 1