Telefones:
(54) 3315-5280
(54) 9 9949-6171
Plantões de Venda:
(54) 9 9939-6171
(54) 9 8166-0303

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 i.idtipo=t.id ORDER BY idimovel' at line 1