ERROR: Couldn't execute query due to: 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 PI.PropertyImageIsActive = 1' at line 6
SELECT PI.*, 0 AS Nothing FROM tblpropertyimage AS PI LEFT JOIN tbluser AS UI ON UI.UserID = PI.UserIDInserted LEFT JOIN tbluser AS UU ON UU.UserID = PI.UserIDUpdated WHERE PI.PropertyID = AND PI.PropertyImageIsActive = 1