query for multiple tables FullList.php