Fixing empty mysql return