I have a table posts with, for example:
post_id | title
1 im in Guadalajara and Zapopan
2 im just in Guadalajara but not in Zapopan
and the table meta_keys
post_id | meta_key
1 Guadalajara
1 Zapopan
2 Guadalajara
I need to get the posts that are in Guadalajara and zapopan BOTH, I realize that if I make an inner join with or, will give me both
in this example I would be expecting to construct a query that throws the post 1 (just the 1)
Thanks
One approach is to use a double join: