Errant query: select jos_content.id,jos_content.title,jos_content.introtext, catid,jos_cities.city,jos_cities.country from jos_content,jos_categories, jos_cities where jos_content.catid= jos_categories.id and jos_categories.parent_id=jos_cities.id_city and jos_categories.title like '%places%' and jos_content.state=1 ORDER BY RAND() limit 4