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 `object_type` = 'photo' AND tagged.did = 10' at line 6
SELECT count(*) as total_count FROM (`tagged`) JOIN `photos` ON tagged.object_id = photos.id WHERE tagged.tagged_uid IS NULL AND photos.uid != AND `object_type` = 'photo' AND tagged.did = 10
