MySQL table ‘Features’
prop_id name
----------------------------
1 Wifi
2 Off Road Parking
1 Off Road Parking
2 Close to beach
3 Close to Pub
1 Close to Pub
Prop_id is the id in another table of the property
what i would like to do is get the id’s of all the properties where they have ‘Wifi’ and ‘Close to pub’
so in this case i would like it to only return 1
Hope that i have made sence!
There are several ways to achieve this, one ugly way is: