fixed MySQL query to force to use index