My full query is...
$query = "SELECT contact.name, contact.address, contact.town, county.countyName, contact.postcode, contact.phone, contact.fax, contact.email, contact.website
FROM contact, categories, county WHERE contact.categoryID = categories.categoryID AND contact.countyID = county.countyID AND categories.categoryID LIKE '$category' ORDER BY contact.name ASC";
Where $category is the variable from the form, but I also need to include the other variable $county.