I'm using this query and it works perfect:
$result = mysql_query("SELECT DISTINCT place FROM archive JOIN place ON place.place_id=archive.place_id ORDER BY place");
But I'm trying to add that it should only select posts with a certain ID.
I have places with IDs and municipalities with IDs.
What I want to do is to select places only from a certain municipality.
Can I add WHERE to my query?
I would like to add this:
WHERE municipality = '$municipality_id'
But I can't get it to work...
Help please, thanks in advance!