I have multiple tables list_of_students, sport_students.
in sport_students I have field named
list_of_house_id and in list_of_students I have field list_of_class_id, and list_of_house_id.
Now but I need to delete records from sport_student acc to house_id and list_of_class_id.
I have tried this query but seems not working
DELETE FROM `sport_students` JOIN list_of_students as student on `sport_student.list_house_id`= `student.list_of_house_id` WHERE `sport_student.list_of_house_id`=1 and `list_of_students.list_of_class_id`=1
Anybody have idea how to do this?