whoever made ​​the structure of these two tables (w3mmd), he forgot indexes

And that's very important, especially for performance...