Are you sure? 🙂 The manual says that "The query string should not end with a semicolon".
In the code:
<? $rs = mysql_query("SELECT * FROM foo WHERE bar='1'"); ?>
The query string is obviously the bit up until bar='1'.
The manual seems to assume that you know that all PHP statements must end in a semicolon, so I'm not sure that what you say is the case.
I could be wrong, of course. I was just curious as to why - security hole perhaps?