Update WorldDatabase.cpp

Use *JOIN* instead of nested *SELECT*, thanks to Naios for the SQL