A Database Error Occurred

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 `a`.`properties_group_id` IS NULL AND `a`.`city_id` IS NULL ORDER BY RAND() ' at line 5

SELECT a.*, b.name AS city FROM `property` a JOIN `city` b ON `a`.`city_id` = `b`.`id` WHERE `a`.`id` != AND `a`.`properties_group_id` IS NULL AND `a`.`city_id` IS NULL ORDER BY RAND() LIMIT 3

Filename: /home/pakuwon/public_html/modules/database/models/database_model.php

Line Number: 126