Top FIVE reasons I rock!!! 1. - Awesome North and West views. 2. - Two separate bedrooms with two unique inter-connecting bathrooms. 3. - Perfect balcony for BBQ'n. 4. - Excellent clubhouse with pool, gym, steam and sauna. 5. - Shopping, restaurants and skytrain right downstairs.
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'and agents.active = 'y'' at line 1select * from agents
join agent_sites on (agents.id = agent_sites.agent_id)
where agent_sites.site_id = 2
and agents.id = and agents.active = 'y'