select * from fanwe_payment_notice where user_id=66586 and is_paid=1 and UNIX_TIMESTAMP(pay_date)>=unix_timestamp(now())-3600*24*12
SELECT
FROM_UNIXTIME(1234567890, ‘%Y-%m-%d %H:%i:%S‘)
select * ,FROM_UNIXTIME(vip_end_time),FROM_UNIXTIME(vip_end_time,"%Y-%m-%d %H:%i:%S") from fanwe_vip_buy_log
where user_id=66586 AND vip_buytime <=unix_timestamp(now()) AND vip_end_time>=unix_timestamp(now()) order by id desc limit 1