select `documents_id`, `documents_location`, `documents_date`, `documents_cases`, `documents_source`, `documents_url`, `documents_title`, `documents_language`, `diseases_name`, `places_name` from documents INNER JOIN diseases ON (diseases_id = id_diseases) INNER JOIN places ON (places_id = id_places) JOIN results ON `documents_id`=`results`.`id_documents` where `results`.`filter`='tp' ORDER BY places_name LIMIT 100, 100Array ( [documents_id] => 1188 [documents_location] => 20120117_tribune.com.pk_8e315b727f49b50dfa980ef6488391d7e5735794b39fb5ac4e3d0428 [documents_date] => 2012-01-17 [documents_cases] => N [documents_source] => tribune.com.pk [documents_url] => http://tribune.com.pk/story/321625/detergent-foam-can-help-fight-dengue-mosquito/ [documents_title] => ‘Detergent foam can help fight dengue mosquito’ [documents_language] => en_en [diseases_name] => Dengue [places_name] => Sri Lanka )