Hi, my name is Andrey.
I have extensive experience in developing from scratch accounting systems like CRM, ERP, web-based databases, real-estate web-applications, reports(xlsx,docx,pdf) based on Yii2 framework(PHP language), MySQL database. And this systems have heavy structure of database, complex queries.
So i suggest my help you. May you send more details about query?
Thank you.