Please help me convert this SQL into ZEND query
<pre>
SELECT aa.*, friendgroup.fgid, friendgroup.typename 
FROM friendgroup,
    (SELECT  accessuserinfo.fgid, accessuserinfo.columnname AS col, a.* 
     FROM accessuserinfo,
         (SELECT userinfo.* FROM userinfo 
          WHERE userinfo.id = '15') AS a
      WHERE accessuserinfo.uiid = a.uiid
     ) AS aa
WHERE friendgroup.fgid = aa.fgid

I was try many way but not get success :(
</pre>
Please help me convert this SQL into ZEND query
===

<pre>
SELECT aa.*, friendgroup.fgid, friendgroup.typename 
FROM friendgroup,
    (SELECT  accessuserinfo.fgid, accessuserinfo.columnname AS col, a.* 
     FROM accessuserinfo,
         (SELECT userinfo.* FROM userinfo 
          WHERE userinfo.id = '15') AS a
      WHERE accessuserinfo.uiid = a.uiid
     ) AS aa
WHERE friendgroup.fgid = aa.fgid

I was try many way but not get success :(
</pre>