Database error in vBulletin 2.2.3: Invalid SQL: SELECT user.pictureid NOT ISNULL(picturedata) AS hascustom FROM user LEFT JOIN userpicture ON userpicture.userid=user.userid WHERE user.userid='1' mysql error: You have an error in your SQL syntax near 'ISNULL(picturedata) AS hascustom FROM ' at line 1 mysql error number: 1064