I am using mysql and php. I am unable to delete any records even if records exist to meet the condition specified in the query , please help to identify the problem, my query is
Table1 (id, LName) table2(id,LName)
delete from table1 where Lname in (select Lname from table2);