class Student():
def getStudentById(self, student_id):
query = "SELECT * FROM students WHERE id = " + str(student_id)
cursor.execute(query)
return cursor.fetchall()
student = Student()
print(student.getStudentById(11))