i changed my code it works fine. As you can see my record in db is in double quotes. Then that would be consider as string. So i changed my query as below
$query=array('ci_courrgate'=>(string)$id); working o/p:1