SELECT sms.* from sms where sms.Checked='0' order by sms.Kind_Index DescSELECT sms.* from sms where sms.Kind_Delivery_Id ='0' or sms.Kind_Delivery_Id='2' or sms.Kind_Delivery_Id='8' or sms.Kind_Delivery_Id='16' order by sms.Kind_Index Desc limit 1
SELECT sms.* from sms where sms.Kind_Delivery_Id ='0' or sms.Kind_Delivery_Id='2' or sms.Kind_Delivery_Id='8' or sms.Kind_Delivery_Id='16' order by sms.Kind_Index Desc limit 1