I have 3 tables in MySQL.
excel - is the table where I store site-name, and side-id analys_result - is the table where I store keywords of sites, it has keyword, id of the category, id of site. categories - contain name and id of category
Here are screenshot's of tables, and what I need to retrieve:
Excel table

analys_result table

Result
