I have two tables in my db and it is one to many connection with other as shown below

In kvves_units table I will get 'name' from the GET Method
now I want to have all value from the kvves_units and kvves_members according to the name of the kvves_units
I'm using the code something like this
$kvvesDetails = $conn->prepare( "SELECT u.id, u.name, u.phone, u.email, u.address, m.name, m.designantion, m.phone, m.email, m.imageFROM kvves_units AS u JOIN kvves_members AS m ON m.unit_id = u.id WHERE `name` = $committee");
name= $committee" );