Fixed: Minor bug in MySQL query.