select h.id, h.title, h.dayprice, h.weekprice, h.monthprice, h.people, h.size, a.square, n.name as barrio
from homes h
join neighborhood n on (n.neighborhood_id=h.neighborhood_id )
join apartmentdata a on (h.id = a.home_id)
where h.authorized=1 and h.cat_id=1
order by h.dateposted desc limit 6
Access denied for user ''@'localhost' (using password: NO)