Corrected a MySQL logic issue and updated CHANGELOG