SELECT sms.* from sms where sms.Checked=0 and `Send_Retry`<4 order by sms.Kind_Index Desc LIMIT 100
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