Sometimes you want to be able to pull queries on a database and phpMyAdmin is just to much overhead.
For those times I wrote this little utility, tell me what you think.
http://www.enderswebdev.com/test/query_engine.phps
P.S. I did not provide a working example for obvious reasons, but it is easy to install on any database you might have, just edit the defines at the top.