I\'ve 2 tables, emp_master and passport_details.
emp_master(emp_id,first_name,email_id,dob,doj,status.........) passport_details(id, emp_id,passport_number,given
A quick Google suggests that subqueries were brought in in MySql 4.1. So they're not supported in 3.23.
Thy something along these lines instead:
SELECT emp_id,first_name FROM emp_master JOIN passport_details ON emp_id WHERE status = 1;