Fixed bug from last commit in MySQL backend