findEntity($sql, [$id, $userId]); } public function findAll($userId) { $sql = 'SELECT * FROM *PREFIX*ownnotes_notes WHERE user_id = ?'; return $this->findEntities($sql, [$userId]); } }