$sqlsearch="select * from product as t1 inner join repayment_type as t2 on t1.id_paytype =t2.id_paytype inner join repayment as t3 on t2.id_paytype=t3.id_paytype where t1.id_pro='$_GET[sid]' and t3.price_pawn ORDER BY t3.date_expPledge DESC LIMIT 0,1 ";