[login] => 0
public function UserL($id){ $sql ="SELECT u.* FROM cms_users u LEFT JOIN cms_comments c ON c.user_id = u.id LEFT JOIN cms_ratings r ON r.item_id = c.id WHERE u.id = $id LIMIT 1"; $result = $this->inDB->query($sql); if (!$this->inDB->num_rows($result)) { return false; } $commen = $this->inDB->fetch_assoc($result); return $commen; }