s.state_abb AS state_abbr
FROM member m
LEFT OUTER JOIN city c ON (m.city_id = c.city_id)
- LEFT OUTER JOIN state s ON (m.state_id = s.state_id),
- county ct
- WHERE m.member_id = :mid
- AND m.state_id = s.state_id
- AND m.county = ct.county_id";
+ LEFT OUTER JOIN state s ON (m.state_id = s.state_id)
+ LEFT OUTER JOIN county ct ON (m.county = ct.county_id)
+ WHERE m.member_id = :mid";
$stmt = $this->dbh->prepare($sql);
$stmt->bindParam(':mid', $this->_mid, PDO::PARAM_INT);
$stmt->execute();
- $row = $stmt->fetch();
+ $row = $stmt->fetch(PDO::FETCH_ASSOC);
if (!empty($row['logo'])) {
$page->logo = $row['logo'];