Good day, comrades, Zend_Db_Select has methods such as join (), joinleft (), etc. I really have not yet learned how to work with them, so I ask for help. You need to properly wrap this SQL query:
SELECT sub. * , mail. * FROM `ListItem` AS list JOIN `SubscriberData` AS sub ON list.SubscriberID = sub.id JOIN `MailData` AS mail ON list.MailID = mail.id JOIN `TagsListItem` AS tags ON list.id = tags.ItemID WHERE list.UserID =666 AND tags.TagID =3
Help please, but for now it works through the usual $ db-> query (), but this is not good.