inner join instead separated queries