remove left behind mysql query