Maybe this: select p.id, p.name from posts p, posts_tags pt, tags t where t.id in (1, 2, 3) and t.id = pt.tag_id and pt.post_id = p.id; On 09/12/2018 10:23 AM, Arup Rakshit
wrote:
--
Angular momentum makes the world go 'round. |
Maybe this: select p.id, p.name from posts p, posts_tags pt, tags t where t.id in (1, 2, 3) and t.id = pt.tag_id and pt.post_id = p.id; On 09/12/2018 10:23 AM, Arup Rakshit
wrote:
--
Angular momentum makes the world go 'round. |