Fixed typo in MySQL query