Error Number: 1064
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 data_module = "BANCOIMOBILIARIO" GROUP BY g.rel_id ORDER BY g.order DESC' at line 4
SELECT `r`.*, `g`.`file` FROM realty_releases INNER JOIN realty AS r ON r.id = realty_releases.realty_id LEFT JOIN realty_gallery AS g ON g.rel_id = realty_releases.realty_id WHERE realty_release = AND data_module = "BANCOIMOBILIARIO" GROUP BY g.rel_id ORDER BY g.order DESC
Filename: /home/storage/6/51/2d/novolarimoveisrs/public_html/controllers/realty.php
Line Number: 627