Fix a couple of mysqli queries.