我使用这个查询来获取user_id的所有请求,并从与检索到的记录相关联的profile _id中获取配置文件名称。
SELECT Requests.request_id,Requests.user_id,Requests.profile_id,Requests.job_title,Requests.date,Requests.time,Requests.info,Requests.approval, Profile.first_name, Profile.last_name FROM Requests, Profile WHERE user_id = '$user_id' AN