Php While Loop Sql Query Examples With Multiple Tables