Errant query: select jos_content.id,jos_content.title,jos_content.introtext, catid,jos_cities_ar.city,jos_cities_ar.country from jos_content,jos_categories, jos_cities_ar where jos_content.catid= jos_categories.id and jos_categories.parent_id=jos_cities_ar.id_city and jos_categories.title like 'أماكن سياحية' and jos_content.state=1 ORDER BY RAND() limit 4