Check out php coder. I just started using it, but it seems to be pretty nice. It's free so the price is definitely right. They request a small donation if you're satisfied with it. Get it at http://www.phpide.de/
I don't know about the sql editor.
-- tale