A Database Error Occurred

Error Number: 1064

You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND (FIND_IN_SET("",pm.categories) > 0) AND `pm`.`isActive` = '1' ORDER BY `...' at line 5

SELECT pm.custom_url, pi.propImage, pm.categories FROM (`properties_mst` pm) LEFT JOIN `properties_images` pi ON `pm`.`ID`=`pi`.`PropID` WHERE `pm`.`ID` != AND (FIND_IN_SET("",pm.categories) > 0) AND `pm`.`isActive` = '1' ORDER BY `pi`.`orderNo` ASC, `pm`.`ID` desc

Filename: /home/reval/public_html/models/properties_model.php

Line Number: 48