$qry = $this->db->query("
SELECT * FROM
`" . DB_PREFIX . "ebay_profile`
WHERE
`ebay_profile_id` = '".(int)$id."'
LIMIT 1");
if($qry->num_rows)
{
$row = $qry->row;
$row['link_edit'] = HTTPS_SERVER . 'index.php?route=openbay/ebay_profile/edit&token=' . $this->session->data['token'].'&ebay_profile_id='.$row['ebay_profile_id'];
$row['link_delete'] = HTTPS_SERVER . 'index.php?route=openbay/ebay_profile/delete&token=' . $this->session->data['token'].'&ebay_profile_id='.$row['ebay_profile_id'];
$row['data'] = unserialize($row['data']);
return $row;
}else{
return false;
}