I'm getting some problems making a simple SELECT w/ LEFT JOIN query:
SELECT
a.sttgs_id, a.sttgs_description,
(c.uss_id IS NOT NULL) as has
FROM
(mt_user b, mt_settings a
LEFT JOIN mt_user_settings c
ON c.sttgs_id=a.sttgs_id AND
b.usr_id=c.usr_id
)
WHERE c.usr_id=2
PHPMyAdmin says: #1054 - Unknown column 'b.usr_id' in 'on clause'.
I really don't know other way to do the SELECT.
Greetings.
Edit: show create table mt_user

FROMusr_id,usr_login,usr_passwd,usr_firstname, etc...show create table mt_user