Am having the following table structure,
--------------------------------------------------------
| id | po_bill_details_id | po_id | status |
--------------------------------------------------------
| 1 | 18 | 6 | 1 |
| 2 | 16 | 7 | 1 |
| 3 | 18 | 7 | 1 |
--------------------------------------------------------
I need to select po_bill_details_id, which will be a common value for the given array of po_id. i.e. If i give [6,7] as input for po_id, i should only get 18 from po_bill_details_id and not 16. How can i query to MySQL for this logic?