SELECT m.email, m.email2, m.firstname, m.lastname FROM sm_masteruser m, sm_masteruserlink ms, sm_class c WHERE m.id=ms.sm_masteruserid AND c.id=ms.sm_classid AND c.login=''
host= port= dbname= user=web password=mati7069