Fixing mysql LoginPath desc columns query