Anda memerlukan WHERE klausa dalam kueri SQL. SELECT ... JOIN ... WHERE u.specialization = '$selectedSpec'