Ошибка запроса к серверу баз данных: No database selected
select w.*,c.header as c_header from company_workers as w inner join al_compworker_cntr as a on a.work_id=w.id and a.cid=520 inner join company as c on c.id=w.comp_id and c.hidden_santorini>0 where w.id=7 and w.hidden>0