$query = $conn->update('myapp_state')->set('prodid', '?')->where('objid = ?')->setParameter(0, $el['prod_id'])->setParameter(1, $el['object_id']);
SQLSTATE[HY093]: Invalid parameter number: number of bound variables does not match number of tokens,
$prodid= $el['prod_id'];
$prodidParam = $conn->createNamedParameter($prodid);
$objid = $el['object_id']
objidParam = $conn->createNamedParameter($objid );
$query= $conn->update('myapp_filestate')->set('prodid', $prodidParam)->where('objid = ' . $objid . '');