fixed wrong sql

was using mdl_ instead of curly brackets.