Doh ... now thats embarrassing funny LOL ... I write a lot of my querys directly in myadmin so I can see what they are doing and then when I'm happy I copy them back to the code ... yes I know I have many strange habits.