MySQL query multiple result bugfix