SELECT * FROM attachments WHERE aid = '8047'
MySQL Query Error