select
users.fname,
users.url,
users.lname,
files_users.id,
files_users.file_ext,
users_info.phone,
users_info.info
from `users`
left join files_users on files_users.uid = users.`uid`
left join users_info on users.uid = users_info.info_uid
where users.uid = and status = '1'.mysql error : You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'and status = '1'' at line 12