There is obviously an id value but it is missing in the sql statement
$data['aid']=I('get.aid');There is no AID in your data
The conditions in where are written incorrectly. The double quotes comment out the variable $aid.
$data['aid']=I('get.aid');There is no AID in your data
The conditions in where are written incorrectly. The double quotes comment out the variable $aid.